Cv :: MatchShapes behaves differently for iOS deployment goal - 8.0 vs 9.0 or 10.0

I have a very interesting problem with OpenCV and different deployment goals, and I'm running out of ideas on what to try.

Customization

  • iPhone 6S
  • IOS Version 10.1.1
  • OpenCV framework 3.1.0.1
  • Xcode 8.1

Problem

When I compile my code with my deployment target (in Xcode) set to 8.0, my code works fine.

However, when I compile my code for deployment purposes set to 9.0 or 10.0, my code works, but the values ​​I get from matchShapesare completely different.

Everything seems to be working fine - I'm doing some filtering before matchShapes, and the output from all the filters is perfect. It seems that it is just concrete matchShapesthat the problem.

.

  • openCV.framework OpenCV pod

:

double matchPercentage = cv::matchShapes(targetShape.contour, contours[i], CV_CONTOURS_MATCH_I3, 0);

, ? .

+4

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


All Articles