1 | initial version |
In the template matching by OpenCV it's better at the first get canny edge from image then smooth this edge image then you can fill your mask region by zero.
2 | No.2 Revision |
In the template matching by OpenCV it's better at the first get canny edge from image then smooth this edge image then in the source image you can fill your mask region by zero.