Reputation: 43
I'm working on an image processing project for the Parrot AR.drone, using opencv4Android, i'm so new to the whole thing! , does anyone have an idea about how to read in video streams from the ARDrone using OpenCV, the samples shows how to get video input from a webcam only
the video is encoded in H.264 format,and the drone adds a proprietary header (called PaVE) to every video frame, apparently that's why Android fails to load the video stream..
thanks
Upvotes: 2
Views: 2728
Reputation: 3137
You need a PaVE parser that will strip the PaVE headers off the H.264 frames before you can decode them and feed them to OpenCV.
There are some PaVE parsers around. Maybe you can use one as-is, or adapt it for your use.
video_com_stage.c
, video_stage_tcp.c
, video_stage_decoder.c
and video_stage_ffmpeg_decoder.c
files in its ARDroneLib/Soft/lib/ardrone_tool/Video
folderUpvotes: 1