detect and recognize digits done.(stroke layout analysis method)