Text this: The mapping algorithm of triangular vertex chain code from thinned binary image