Home > database >  How to matchtemplate a transparent image opencv
How to matchtemplate a transparent image opencv

Time:03-31

I tried the method in the answer of this: Result

attention to the algorithm:

  1. Change threshold to find different location for matching
  2. Change matching algorithm

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.

  • Related