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:
↧