Image Capture Command
Hi DJI,
I need to write a function or command to capture image with payload in the app but not as an action in a mission, a function that let me capture image freely when I need it.
Would you please give me the sample code or reference for this.
Thank you
Agent comment from YIGUI LIU in Zendesk ticket #157910:
Dear Developer,
The communication between MSDK and the payload is implemented through the payload management class IPayloadCenter. You can refer to the tutorial documentation: https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/payload2.html, which explains how to set the value of payload controls via setWidgetValue and send data or control commands to the payload via sendDataToPayload.
In addition, for implementing large data transmission, it is recommended to use the MOP communication function of MSDK and PSDK: https://developer.dji.com/doc/mobile-sdk-tutorial/en/tutorials/sdk-interconnection.html
Best Regards,
DJI Innovations SDK Technical Support Team
°°°
I can capture image with this command but I want to know if there is any possibility to capture image with specific name or adding some characters to the image name?
I want to capture images with specific names and numbers.
Agent comment from YIGUI LIU in Zendesk ticket #157910:
Dear Developer,
I hope this email finds you well
You can use CameraKey.KeyCustomExpandFileNameSettings to set a custom suffix for the naming of captured images. It supports English letters, numbers, and Chinese characters. For special characters, only "-" is allowed. The maximum length is 70 characters.
For more details, please refer to the API documentation: https://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_Camera_CameraKey.html?search=keycustomexpandfilenamesettings&i=0&#key_camera_customexpandfilenamesettings_inline and the FAQ documentation: https://sdk-forum.dji.net/hc/en-us/articles/11720132480409-How-to-use-KeyCustomExpandFileNameSettings
Best Regards,
DJI Innovations SDK Technical Support Team
°°°