Synthèse
Returns an image file’s Exchangeable image file format (EXIF) metadata, including XMP format.
Discussion
An image file can contain any number of EXIF properties. This method returned a selected set of EXIF properties stored under the EXIF tag. It also returns additional properties stored in XMP (Extensible Metadata Platform) format if available in the image file.
Syntaxe
GetImageEXIFProperties (geotagged_image)
Paramètre | Explication | Type de données |
geotagged_image | The image file path that contains geotagged EXIF properties. (La valeur par défaut est None) | String |
Type de données | Explication |
List | The output metadata. Longitude and latitude will be in decimal degrees, and altitude will be in the unit defined in the image EXIF. Longitude, latitude, and elevation will be returned in the first three index positions of the list. EXIF properties will be returned in the next position as a dictionary, using the following EXIF tags as keys.
The EXIF properties are returned in XMP format. If no valid EXIF properties information is found, the function returns None. Return EXIF properties from JPEG image.
|
Exemple de code
Return EXIF properties from a JPEG image.
import arcpy
# Get exif metadata in JSON format from image
arcpy.GetImageEXIFProperties(r"c:/droneimages/Picture044.jpg")
Vous avez un commentaire à formuler concernant cette rubrique ?