Android中的Ardrone视频流解码 [英] Ardrone Video Stream decoding in Android

查看:91
本文介绍了Android中的Ardrone视频流解码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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.

  • 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 and video_stage_ffmpeg_decoder.c files in its ARDroneLib/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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆