how to use open cv in visual studio 2017
i want to use open cv with vb 17. and i m new to open cv. is there any code which helps to code for face detection? a simple and easy steps.
i want to use open cv with vb 17. and i m new to open cv. is there any code which helps to code for face detection? a simple and easy steps.
2015 and 2017 should be binary compatible (can not post link :-( ), so you can use the compiled Windows version available from the OpenCV web page. But you have to edit the .cmake file to allow 2017.
Change these lines in OpenCVConfig.cmake
elseif(MSVC_VERSION EQUAL 1910)
set(OpenCV_RUNTIME vc15)
endif()
to
elseif(MSVC_VERSION EQUAL 1910)
message("-- Using OpenCV vc14 for VisualStudio 2017.")
set(OpenCV_RUNTIME vc14)
endif()
I just tried this and it works.
please clarify which language you are using with Visual Studio, e.g. C++, VB, C#, etc.
Visual Basic As @berak notes, OpenCV does not support Visual Basic (although there are unofficial .NET wrapping for OpenCV which you could use to employ OCV in VB). Due to the nature of .NET, you wouldn't need libraries which were specifically built for Visual Basic .NET 2017, you could use older libraries also.
Visual C++ If you're referring to VC (Visual C++), then you will need c++ libraries (and binaries) built with/for Visual C++ 2017. These are not available officially yet, but you could try using a recent version of cmake and a recent version of opencv from github to generate and build your own VC 2017 projects and solution. But you likely will hit many issues.
Since it sounds like you might be new to OpenCV, it's strongly suggested that you use a well supported platform e.g. Visual C++ 2015. If you want to avoid C++, then please consider using OpenCV with Python as it is quite easy to setup and is well documented.
Asked: 2017-03-07 09:22:13 -0600
Seen: 14,037 times
Last updated: Mar 08 '17
OpenCv and Visual C++ Face detection
opencv 3.3.0 + opencv_contrib 3.3.0 - Missing .lib file
Visual Studio 2017 doesn't have auto complete (OpenCV and Python) [closed]
surface_matching code stuck on training
OpenCV build issue on Windows 10 platform
OpenCV3.4.3, What should the environment variable path be if I have Visual Studio 2017 installed?
CNN model does not load inside Visual Studio 2017 using dnn.readNetFromTensorflow
Getting LINK2001 error in MSVS2017 although I have added both lib files to dependencies
Error static function 'bool pyopencv_to<DAISY_NormalizationType> not defined
opencv does not support basic at all .