OpenCV 2.3中VideoCapture的问题 [英] Problem with VideoCapture in OpenCV 2.3

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

问题描述

我在使用 VideoCapture calss打开MPEG视频文件时遇到问题。代码编译正确。但是,在运行时,它无法打开文件,并给我以下警告消息:



警告:打开文件时出错/modules/highgui/src/cap_ffmpeg_impl.hpp:477)



我只有当我在调试模式下构建代码时出现这个问题。

使用 CvCapture 可以正确地在 c strong> cvCaptureFromAVI (在发布和调试模式下),但是我想以更多的C ++风格开发我的代码。



OpenCV 2.3 in Visual-studio(C ++)10)



感谢您的帮助

解决方案

检查您的包含路径。它听起来像构建环境正确配置为发布模式,但不是调试模式。


I have problem in using VideoCapture calss for opening a MPEG video file. The code was compile properly. However, during the running time, it can not open the file and give me the following warning message:

warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:477)

I have this problem only when I build my code in debug mode. I relsease mode the code works correctly.

The code also works correctly in the c style using CvCapture and cvCaptureFromAVI (in both release and debug mode), however, I'd like to develop my code in more C++ style.

(I am using OpenCV 2.3 in Visual-studio (C++) 10)

Thank you for you helps

解决方案

Check your include paths. It sounds like the build environment is properly configured for Release-mode but not Debug-mode.

这篇关于OpenCV 2.3中VideoCapture的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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