I'm trying to export an image using a FeatureCollectionFeatureCollection
as region. My code is as follow:
params = {
'description': 'ndviChange_to_gtiff',
'scale': 30,
'region': AOI
}
ee.batch.Export.image.toDrive(ndviChange, **params)
the AOI is a Feature CollectionFeatureCollection
defined earlier in my code:
AOI = ee.FeatureCollection("users/..../AOI")
I'm getting this error:
TypeError: Object of type FeatureCollection is not JSON serializable
Note that I'm running the code in QGIS GEE plugin.