opencv-python matchTemplate TM_CCOEFF_NORMED with binarized image and grayscale image
I’m newbee in opencv-python.
Why doesn’t template_matching delete the previous ROI
I am making a program that executes image-to-image correspondence between a PCB and its diagram. I have made a function template_matching
that handles template matching and deleting visited areas so it can find all instances of the template above a certain threshold. The program should calculate the angle from the reference point (0,0) and see if the components match (I am doing this because i also want to check if their polarity is the same, otherwise I would have used BF Matching). The problem is that it still overlaps matches, meaning it didn’t delete the previous matches from the image.