morphologyEx with MORPH_OPEN give me reverse image result

asked 2019-09-23 16:43:58 -0600

DZ3264 gravatar image

I use an element (image of character 'c') apply to a image (text image) and use cv2.morphologyEx(img, cv2.MORPH_OPEN, element) to do the match (find character 'c' in text image)

However, the result image give me all the position of 'c' but with reverse 'c' (as the image)

Could anyone please tell me why and how to get the right place of image and element? image description

edit retag flag offensive close merge delete

Comments

1

show us your code and original image.

LBerger gravatar imageLBerger ( 2019-09-24 04:08:42 -0600 )edit