PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

does StyleText support long inputs with spaces between words?

Open Ao-Lee opened this issue 2 years ago • 1 comments

I would like to ask does StyleText support sentence inputs (document style rather than single words from street views) with spaces between them? or would you have plans on that, many thanks

Ao-Lee avatar Sep 20 '22 02:09 Ao-Lee

During training, StyleText takes images of size 32×320, so if the text is too long, the effect may not be good. Thanks for your suggestion, but the version of long inputs is not planned to be developed at this stage.

an1018 avatar Sep 22 '22 05:09 an1018

Thank you for answering. I would like to ask, when training a recognition model, does the model learn to recognize space when feeding input images containing only one word. Would StyleText support short words with white spaces that satisfy the input resolution (32×320). Another related question is: how does ppocr (to be more precisely, how does SVTR_LCNet) learn to recognize white space? Thanks you again

Ao-Lee avatar Sep 26 '22 06:09 Ao-Lee

Spaces are not supported in styleText. For space recognition, , the blank area around a single word is relatively large, and may not be good effect. You can add a space category to the training dictionary, and then add some samples with spaces for training.

an1018 avatar Sep 29 '22 06:09 an1018