I have a set of hiragana characters and I want to count the numbers of strokes.
My input images are like:
character ma:
character ku:
The output would be the number of strokes, for example the character ma would return 3 strokes:
and the character ku would return 1 stroke:
I have tried Canny, Hough and Skeletonization. It didn't give me what I wanted.
I'm thinking of counting continuous lines but I don't know how. I found this answered question that finds the discontinuity of a circle here but it only applies on circles
*[The images are declared as a Mat
. I am using C++, Visual Studio 2013, gcc 4.8.3 and opencv 2.4.9.]
Thank you in advance.