Download photos automatically without changing to DOWNLOAD (or read exif in MSDK)
We need to perform some minor image validation but using the OSDK is a bit overkill as it requires external hardware. Specifically, we need to read photo details; ‘xmp’ and ‘exif’ metadata.
Switching to DOWNLOAD and downloading images during the waypointV2Mission isn't possible due to time restraints so I was hoping there might be some manner to access the data more quickly by the MSDK but have not found a solution (outside the OSDK).
-
Does getXMPFileData() work for the M300 RTK and can I access it from MediaFileInfo (the new return from setNewGeneratedMediaFileInfoCallback)?
Is there a way to read exif data (also without downloading the entire image locally)? I've been unable to locate what the value CUSTOM_INFORMATION in the FetchMediaTaskContent() method returns
Basically, what I am trying to do it run calculations on the exif and xmp data for each inspection photo taken during the waypoint flight.
-
I noticed that the DJIAlbumFileInfo includes innerFileInfo.extExif. Is there a way to get that populated?
Basically, we are using the exif information to validate the quality of images taken during a mission (3 images per waypoint).
If that is not possible, then is there any alternative method to retrieve the exif data WITHOUT downloading the full-size zoom image? For example, does the thumbnail include the exif data from the full-sized image?
-
Hi William Wong, would you mind detailing how exactly you download photos while flying a survey mission (using distance interval triggering) with an M300RTK? Can you just use the MediaManager class as though the drone were in `DOWNLOAD` mode?
For example (while drone is flying mission):
- Configure `setNewGeneratedMediaFileInfoCallback`: gets alerted each time a new image is captured
- Call `getIndex` on MediaFileInfo returned by above callback
- Call `getSDCardFileListSnapshot` to retrieve a list of files
- Get the `MediaFile` at index returned in #2
- Call `fetchFileData`
-
Ah, thank you William Wong. Are there other drones/cameras that support this feature (or are planning to support in the future)? Is this feature documented anywhere?
-
Using `setNewGeneratedMediaFileInfoCallback` is very inefficient, as I understand how it works, at least if you want to download images during flight because the refresh method will download the complete list of ALL image files. This means the longer the flight and more images, the more time spent refreshing the list and starting a download.
The benefit from the, now deprecated callback was that it was called for each new image.
Do I understand that the ONLY way to validate exif data in near-realtime would be to use the OSDK and some processor like the Raspberry Pi?
请先登录再写评论。
评论
9 条评论