Home > Back-end >  FindContours () always find outline collapses, online couldn't find a solution
FindContours () always find outline collapses, online couldn't find a solution

Time:11-26

I use findContours (image contours, hierarchy... Find outline will always melt), the notion of online couldn't find a solution, someone used findContours?

D: \ opencv \ sources \ samples \ CPP \ tutorial_code \ ShapeDescriptors \ findContours_demo. CPP


Online is used:

CV: : vector and pre-allocated memory:
CV: : vector Contours (10000);
CV: : vector
But didn't work, is my system DE reason?

CodePudding user response:

CV: : vector Contours (10000);
CV: : vector (10000);
Try to get rid of the red part? Outline of the contour of the outer container to save, it is the size of the outline of the quantity, the inner container is each contour point, suggest stick point code?

CodePudding user response:

Problem has been solved!

Simple solution is to use the Release mode to run the program!

https://blog.csdn.net/kilotwo/article/details/88863630

CodePudding user response:

The
references to It - is on the second floor - me! Response:
problem has been solved!

Simple solution is to use the Release mode to run the program!

https://blog.csdn.net/kilotwo/article/details/88863630

You didn't generate the debug version of the opencv before,

CodePudding user response:

Existing OpenCV Debug, but the Debug version will do wrong,
  • Related