Image too small to scale!! (3x48 vs min width of 3)

1,771 views
Skip to first unread message

roberty...@gmail.com

unread,
Oct 18, 2017, 4:27:56 AM10/18/17
to tesseract-ocr
Hello,

I am trying to manually generate the input data of Tess4.0, which contain the box and tif file.

But when I run the command to generate the .lstmf file, images have been rotated 90 degrees, which is shown following;

























So, when I execute the "training/lstmtraining" command to finetune training the network, Tess4.0 reminders the error "Image too small to scale!! (3x48 vs min width of 3)".

After analyze this error, I find this is because the image has been rotated, so when Tess4.0 compress the image height to 48 pixels, the image width is too small (only one pixel).


To contrast, I also execute the "training/lstmtraining" command with the image which is generated by Tess4.0 itself. Then I find the image has not been rotated, which is shown following:





But when I manually generate the image, it will be rotated, why?   I cannot find anything wrong.  Can you help me?
Reply all
Reply to author
Forward
0 new messages