***** VIDEOINPUT LIBRARY - 0.1995 - TFW07 *****

asked 2016-10-10 04:31:18 -0600

Mert gravatar image

I have a problem I did what you show this video, altough I see this error : VIDEOINPUT LIBRARY - 0.1995 - TFW07

I am also add: Properties-> debugging->Command Argument: ../data/lena.jpg C/C++->Additional Include Directories->C:\OpenCv\build\include;%(AdditionalIncludeDirectories) Linker->Additional Library Directories->C:\OpenCv\build\x64\vc14\lib;%(AdditionalLibraryDirectories) Linker->Input->Additional Dependencies-> opencv_world310d.lib And system path.

Program and library information: Visual Studio 2015 Opencv 3.1

I have tried:

1-) image = imread("C:\lena.jpg", IMREAD_COLOR);

It doesnt work. Same problem.

How can fix it ? Have you ever faced such a problem.

Best Regards

edit retag flag offensive close merge delete

Comments

that's a debug msg, not an error. (if you switch to release mode, it will go away)

berak gravatar imageberak ( 2016-10-10 04:43:53 -0600 )edit

don't forget to C:\lena.jpg or C:/lena.jpg in your file name

LBerger gravatar imageLBerger ( 2016-10-10 04:46:08 -0600 )edit

Thanks, but I have still problem.

Could not open or find the image OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow, file C:\buildslave64\win64_amdocl\master_PackSlave-win64-vc14-shared\opencv\modules\highgui\src\window.cpp, line 281

Could you help to solve this problem?

Mert gravatar imageMert ( 2016-10-10 15:50:42 -0600 )edit

Check image size before imshow

cout<< image.size()<<"\n";
LBerger gravatar imageLBerger ( 2016-10-11 01:33:53 -0600 )edit

Result : [0 x 0]

Mert gravatar imageMert ( 2016-10-11 06:50:42 -0600 )edit

Thanks all,

I solved this problem. I have changed my perspective on problems so I didnt think about code. I changed "lena.jpg" file which is a kind of incompatibility. It is working.

Mert gravatar imageMert ( 2016-10-11 07:50:09 -0600 )edit