I have an image that contains some values โโin meters written by the manuscript, I would like to find the position of the letter m so that I can crop it and leave only the number.
This is an example:
Original Image: Input images are as follows: this is actually the best handwriting I can get, usually itโs much worse.

Image of a train: I have a list of many types of letters m, cut from different handwritten images that I have.

Resulting image: The result I want to get

I already tried using the opencv pattern matching functions, but it did not work, also found this github , but it also uses pattern matching. I would like to know if there is another way to solve this problem.
source share