【发布时间】:2013-12-20 22:29:11
【问题描述】:
我正在尝试在 Ubuntu 13.10 上编译 VLC 2.0,并提供 opencv 支持(v. 2.4.6.1)。编译产生以下错误:
COMPILE : libopencv_example_plugin_la-opencv_example.lo
opencv_example.c: In function 'Filter':
ERROR : opencv_example.c:185: 45: too few arguments to function 'cvHaarDetectObjects'
cvSize(20, 20) );
^
In file included from /usr/local/include/opencv/cv.h:71:0,
from opencv_example.c:41:
/usr/local/include/opencv2/objdetect/objdetect.hpp:139:15: note: declared here
CVAPI(CvSeq*) cvHaarDetectObjects( const CvArr* image,
^
WARNING : opencv_example.c:210: 57: assignment discards 'const' qualifier from pointer target type [enabled by default]
p_sys->event_info.p_region[i].p_description = "Face Detected";
^
make: *** [all] Error 2
有没有人遇到过同样的问题,或者知道如何解决它?任何帮助将非常感激。过去似乎对opencv的支持一直存在问题,但问题似乎已经解决。并且用示例代码测试opencv库得到了满意的结果,所以我猜问题出在VLC...
【问题讨论】:
-
只是一个警告,vlc过滤器代码有点基于opencv1.0,c-api,非常过时。另外,你真的想让你的代码在 inside vlc 管道中运行吗?使用 libvlc 制作某种“模拟”VideoCapture 对象对我来说听起来是一个更好的主意。