Android中的Ardrone视频流解码 [英] Ardrone Video Stream decoding in Android
问题描述
我正在使用opencv4Android进行Parrot AR.drone的图像处理项目,对整个事情我还是很陌生! , 有没有人知道如何使用OpenCV从ARDrone中读取视频流,这些示例说明了如何仅从网络摄像头获取视频输入
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
视频以H.264格式编码,并且无人机在每个视频帧中添加了专有标头(称为PaVE),这显然就是Android无法加载视频流的原因.
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..
谢谢
推荐答案
您需要一个PaVE解析器,该解析器会将PaVE标头从H.264帧中剥离出来,然后才能对其进行解码并将其提供给OpenCV.
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.
周围有一些PaVE解析器.也许您可以按原样使用,也可以对其进行调整以适合您的使用.
There are some PaVE parsers around. Maybe you can use one as-is, or adapt it for your use.
- AR.Drone官方SDK(可在此处下载: https://projects.ardrone.org/)包括用于解码PaVE的C代码;查看
ARDroneLib/Soft/lib/ardrone_tool/Video
文件夹中的video_com_stage.c
,video_stage_tcp.c
,video_stage_decoder.c
和video_stage_ffmpeg_decoder.c
文件 - JavaScript(node-ar-drone项目的一部分): https://github.com/felixge/node-ar-drone/blob/master/lib/video/PaVEParser.js
- C gstreamer模块: https://projects.ardrone.org/boards/1/topics/show/4282
- ROS驱动程序(由Willow Garage创建,他也创建了OpenCV): https://github.com/AutonomyLab/ardrone_autonomy
- The official AR.Drone SDK (downloadable here: https://projects.ardrone.org/) includes C code for decoding PaVE; see the
video_com_stage.c
,video_stage_tcp.c
,video_stage_decoder.c
andvideo_stage_ffmpeg_decoder.c
files in itsARDroneLib/Soft/lib/ardrone_tool/Video
folder - Javascript (part of the node-ar-drone project): https://github.com/felixge/node-ar-drone/blob/master/lib/video/PaVEParser.js
- C gstreamer module: https://projects.ardrone.org/boards/1/topics/show/4282
- ROS drivers (by Willow Garage, who also created OpenCV): https://github.com/AutonomyLab/ardrone_autonomy
这篇关于Android中的Ardrone视频流解码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!