Detect custom shape OpenCV
问题 I want to find custom shape in OpenCV. Shape is previously defined. I want to detect if this shape is equal or not equal to the current shape using WebCam in real time. How can I do that? How to compare pre-defined custom shape and current shape? 回答1: As the commenters have eluded, you can use template matching to detect custom shapes. So What Is Template Matching? Template matching is a technique in digital image processing for finding small parts of an image which match a template image. It