OpenCV 2.1 Strange Errors

I’m not sure if this is the right place to ask such a question, but I don’t have a better sense.

After LOTS encoding in OpenCV, I try to switch to the new C ++ - openCV interface, which was introduced in OpenCV 2.0. but I get weird errors all the time.

For instance:

  • When trying to use the prebuilt dll and libs libraries, I got exceptions in cv :: warpAffine and "findContours" cv :: function at runtime. I compiled openCV, used my own build of libs and dll, and everything fixed!
  • the same problem arose on Linux.
  • linking the built-in Debug DLLs with the Release built-in causes some unexpected runtime errors and vice versa.

and some other errors. can someone help me with what i am doing wrong? (please keep in mind that I encoded a lot with the old version of openCV).

+3
source share
2 answers

When I switched to the C ++ interface, I could not work openCV until I compiled the source myself. Probably the DLLs and Libs that are installed with opencv are only good for a particular machine.

Another thing. Try the following if you are using Visual Studio go to "Project Properties" → Click the C / C ++ folder → Code Generation → Runtime Library and change it to / MDd in the debug configuration and / MD in version

Solves the problem with STL exceptions

0
source

( calib3d), 2.2

, , visual studio

0

Source: https://habr.com/ru/post/1765809/


All Articles