Compare two images with OpenCV

I want to compare two images using OpenCV. Can I filter the closest match result among other training datasets ??
Example: a database containing a training image that shows number 5 using one hand.

Is it possible to match someone else, the same sign with this training image ..? Using OpenCV. Please help me.

+3
source share
2 answers

As stated in sinelaw, there is no simple, simple solution at all .

However, I can present one simple way that will work for your specific example .

  • , . , ( , , ). . . , YUV , , , .
  • . OpenCV cvFindContours. . , .
  • , , 5. , , ( ) 4-5 ( ):

convexity defects

  • OpenCV API cvConvexityDefects. Go , .
  • , . 4 ( ). , , .
+3

. - .

+1

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


All Articles