Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to Read DJI FPV Feed as OpenCV Object?

$
0
0
You can find my full question and code here: https://stackoverflow.com/questions/56284630/how-to-read-dji-fpv-feed-as-opencv-object I hope this is ok, since I was having issues formatting my code from the stack question. DJI FPV feed returns H264 as a byte[] in real time. I want to convert this byte to OpenCV. I. Is this the correct way to read the byte as mat if format wasn't an issue? Assuming it is RGBA, that means row = 4 and columns = byte[].length, and CvType.CV_8UC4 II. Does OpenCV handle MP4 in android like this? III. Does the int size have something to do with it? Why is the int size occassionally 6, and other times 2400 to 6000? IV. Can I fix this using Imcodecs? I added the below code, but I am getting an empty array:

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>