Home > Back-end >  Opencv3.0 vs2010 failed to open video VideoCapture, vs2015 opencv3.2 also has this phenomenon
Opencv3.0 vs2010 failed to open video VideoCapture, vs2015 opencv3.2 also has this phenomenon

Time:04-23

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Microsoft Visual c + + Runtime Library
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Debug Assertion Failed!

Program: D: \ CAXA practice \ VideoTest \ x64 \ \ Release \ VideoTest exe
File: minkernel \ CRTS \ ucrt \ SRC \ appcrt \ convert \ isctype CPP
The Line: 36

Expression: c & gt;=1 & amp; & C & lt;=255

For information on how your program can cause an an assertion
Failure, see the Visual c + + documentation on asserts.

(Press Retry to debug the application)

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Abort retry (R) (A) ignore (I)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

A novice learning opencv, open the video to report this error, check a lot of information, also tried many methods, all have no clear answer,
Consult each a great god, and what's the problem is my opencv library of extension module

CodePudding user response:

Photo open operation processing are normal, not video, to compile can pass, run error, should be or what is missing

CodePudding user response:

Above problem has been processing, display is another question, in the open function called VideoCapture opened the video, always returns false, the open failure, said a lack of video online DLL, opencv_ffmpeg. DLL, but I did in the past, also not line, consult each great god

CodePudding user response:

Excuse me, the original poster minkernel \ CRTS \ ucrt \ SRC \ appcrt \ convert \ isctype CPP, how to solve this problem, I also met

CodePudding user response:

DLL
opencv_videoio # # #.DLL
opencv_imgcodecs # # #.DLL
opencv_videoio_ffmpeg # # #.Opencv_videoio_ffmpeg # # # _64. DLL
Where # # # corresponding opencv version number

CodePudding user response:

DLL
opencv_ffmpeg # # #.Opencv_ffmpeg # # # _64. DLL

CodePudding user response:

Copy the DLL to
Exe program folder you
And
In the VS IDE projects, properties, configuration properties, debugging, corresponding folder
working directory:Under each a,
  • Related