BallonsTranslator
BallonsTranslator copied to clipboard
Completing block drawing for normal recognition at borders
I have this idea. Now, if at least part of the recognition block is located outside the border of the picture, then recognition fails:
[INFO ] ocr_google_lens:_ocr_blk_list:257 - Image size: 3541x2508
[INFO ] ocr_google_lens:_ocr_blk_list:261 - Processing block: ((0, 131, 525, 1964))
[WARNING] ocr_google_lens:_ocr_blk_list:269 - Invalid text bbox to target image
Maybe we can complete the picture if we go abroad? By the amount by which the text recognition block extends beyond the border of the image + 5 pixels. The text detector itself sometimes recognizes text at the border and, because of this error, stupidly does not want to work.