Opencv 3.0.0 , C++, Visual Studio 2015 - error in finding contours and ConvexHull

后端 未结 3 1019
时光说笑
时光说笑 2021-01-16 01:50

I am trying to write a program that can create a polygon(of any number of sides) around a certain object and find the polygon\'s centroid . For this purpose, I opted to use

相关标签:
3条回答
  • 2021-01-16 02:11

    It is probably a simple linking problem.

    If you are compiling in Debug mode, the linker needs the Input Variables opencv_world310d.lib not the opencv_world310.lib (notice the d before the dot).

    Only when you compile the Release mode you have to type in the opencv_world310.lib.

    I had the same problem. Cost me a day to figure out.

    0 讨论(0)
  • 2021-01-16 02:14

    I had a same my case. (opencv 3.0) I tried this, then findcontours() works well.

    I think, you already input information as follows.. Linker --> Input (입력) --> Additional Dependencies

    opencv_world300d.lib opencv_world300.lib opencv_ts300d.lib opencv_ts300.lib

    There arent't edited library, I was just align it (300d.lib -> 300.lib) and apply! and it works well!

    0 讨论(0)
  • 2021-01-16 02:15

    according to this : Returning from function crashing, only after a certain point in the code

    and my own experience (unfortunately) compiling the program in vs 2013 instead of 2015 or just changing the platform toolset to (v120) was enough for me to fix the bug

    0 讨论(0)
提交回复
热议问题