How To Manage Min_match_count In Image Comparison Using Canny?
I am using canny for image comparison. I am getting correct results for matching and non matching objects after comparing using canny image edging. At times it is not giving the ri
Solution 1:
You could use a relative criteria, so instead of using an asbolute value for MIN_MATCH_COUNT you can use the percentage of matching keypoints over the total number of keypoints of your model. In this way you can set a threshold based on your specific test, let's say..30% (IDK, just an example). That's what I do in a similar issue. Something like:
matching = len(good)/len(kp1)*100
In this way 0<matching<100 and represent a percentage of similarity, so you can do:
min_threshold = 40
if matching > min_threshold:
...
Post a Comment for "How To Manage Min_match_count In Image Comparison Using Canny?"