Home > Software engineering >  Veteran beginners OpenCV, ask a few questions! Experienced TX please comment.
Veteran beginners OpenCV, ask a few questions! Experienced TX please comment.

Time:04-08


1. On the lot of opencv, https://github.com/opencv/opencv/releases
The latest release v4.5.2, see have multiple resources to download,
Going to do some basic exercises in Visual Studio, originally is vs2013, download the opencv - 4.5.2 - vc14_vc15. Exe,

Setup OpenCV development environment, the engineering, new online to find a few lines of code is as follows:
CvCapture * pCapture=cvCreateCameraCapture (1);
Mat image=cvQueryFrame (pCapture);
As a result, build all kinds of errors, could it be said, these two functions obsolete, replaced? Where can find the official document, the specification of authority?

2. The code is changed to the following:
Mat frame;
VideoCapture cap;

Cap. Open (0);//by default use webcam
Cap. Read (frame))
Can barely run up and executes an error, estimation is because, this version of opencv vc14 support, 15, vs2013 too old?

(3) installed vs2019 again, so if need, download new opencv?
On the lot of opencv, which one to download? Corresponding vc16 has three, if the CPU does not support avx2, is can't use opencv under vs2019?

4. Build in release mode generated exe, needs to be opencv_world451. DLL placed together, copied to the target environment can run normally, other such as vitamin c runtime what of, at the same time deployment package which DLL is needed?

Consulting the first, thank you for your attention and reply,


Btw, the problem of opencv, as if there is no specific BBS, put first here,

CodePudding user response:

https://blog.csdn.net/weixin_41991128/article/details/83656543
https://blog.csdn.net/qq_41175905/article/details/80560429? Depth_1 -


  • Related