我在這個答案中嘗試了該方法:
注意演算法:
- 更改閾值以找到不同的匹配位置
- 更改匹配演算法
Check why sometimes you should use max and sometimes use min value found location matching.
helpful links:
Template Matching
OpenCV Template Matching ( cv2.matchTemplate )
Template matching using OpenCV in Python
Update #1
If you want to reach better results you should use feature descriptors like "HOG", "Surf", "SIFT" and ... . Or state of the art object detection models like YOLO are the best known to your problem.
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/453329.html
上一篇:如何用黑色更改接觸中的像素顏色集
下一篇:如何正確找到輪廓?
