opencv - cropping handwritten lines (line segmentation)
问题 I'm trying to build a handwriting recognition system using python and opencv. The recognition of the characters is not the problem but the segmentation. I have successfully : segmented a word into single characters segmented a single sentence into words in the required order. But I couldn't segment different lines in the document. I tried sorting the contours (to avoid line segmentation and use only word segmentation) but it didnt work. I have used the following code to segment words