Example doesnt correctly

asked 2019-07-04 19:03:32 -0500

Hello everyone. I try to work with my webcam by this https://github.com/opencv/opencv/blob... example. Compiled by msvc2019 and opencv(3.4.3) from vcpkg. But smth went wrong here

C:\Users\username\source\repos\Cascade Classifier\Debug>videocapture_basic.exe
[ INFO:0] VIDEOIO: Enabled backends(5, sorted by priority): MSMF(1000); DSHOW(990); VFW(980); CV_IMAGES(970); CV_MJPEG(960)
ERROR! Unable to open camera
edit retag flag offensive close merge delete



opencv(3.4.3) from vcpkg

opencv does not maintain this. please uninstall, and try again with something from here

berak gravatar imageberak ( 2019-07-05 01:03:29 -0500 )edit

Okey, i understand you. I download latest 4.1.0 for vc15 from git and linked it correctly, example with image works, but i caught new error. Same as this https://stackoverflow.com/questions/5...

TrinityBomber gravatar imageTrinityBomber ( 2019-07-05 15:57:06 -0500 )edit

If i force to use FFMPEG

[ INFO:0] VIDEOIO: Enabled backends(6, sorted by priority): FFMPEG(1000); GSTREAMER(990); MSMF(980); DSHOW(970); CV_IMAGES(960); CV_MJPEG(950)
--(!)Error opening video capture
TrinityBomber gravatar imageTrinityBomber ( 2019-07-05 15:59:08 -0500 )edit