G
G
GeekFromUa2016-06-05 15:40:57
C++ / C#
GeekFromUa, 2016-06-05 15:40:57

How to determine the boundaries of a letter in a bitmap?

Hello! There is a letter written in a two-dimensional bool array (c ++), let's say 30 by 40. How to select only the boundaries of the letter in this bitmap, so that later you can walk along this line with the recording of the rotation angles for subsequent symbol recognition (chain code algorithm).
I tried to simply add neighbors to each filled bit (right, bottom, left, top), so it turned out something like that, but it still doesn’t work correctly at intersections. Maybe someone worked with this, I will be glad to help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fat Lorrie, 2016-06-05
@Free_ze

Maybe you should look towards OpenCV? Everything you need is already there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question