Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

Accessing Phantom 4 Pro V2 video frames

Open zijian98 opened this issue 4 years ago • 2 comments

Hi, I am trying to integrate OpenCV into my app to perform object detection in real time while flying. Are there any ways in which I can get the camera frame data and do further processing?

I have seen this sample https://github.com/DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample but I am unsure of how to pass it as Mat.

zijian98 avatar Oct 19 '21 05:10 zijian98

Agent comment from DJI SDK in Zendesk ticket #54759:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev avatar Oct 19 '21 05:10 dji-dev

You can refer to this demo and you can get Yuv data in setYuvDataCallback and you can pass the yuv data into openCV library to process.

DJI-William avatar Oct 19 '21 07:10 DJI-William