Is there any way to process multiple lines asynchronously?

136 views
Skip to first unread message

two way

unread,
Apr 1, 2021, 3:54:29 AM4/1/21
to tesseract-ocr
Hello, I am currently using TextFairy application which is based on Tesseract library.
I am really satisfied about the convenience and high accuracy about it. However my attention has been turned to the following problem.

This is the original image I used as input data.
old.png

As the photo had high resolution - 3000x1700 pixel, it was not fast to process the entire image. And following images show the processing the image as a percentage.
a1.png
a2.png
a3.png
a4.png

As I can see, characters detection is proceeding in order, line by line. The source image has more than 20 lines, so maybe it needs more than 20 times of calculating one line.Is it possible to do this asynchronously perhaps using thread or Async task to improve the optimization?

Thanks in advance.
XueQing

Charles Cho

unread,
Apr 5, 2021, 4:37:22 AM4/5/21
to tesseract-ocr
Hi, 
Do you mean you want to process multi lines at once based on tesseract? It's interesting.
I think tesseract supports multithread environment.
But I can't make sure it means tesseract supports multi line process. It  may be different meaning.
Anyone knows about this?

Best,
Charles.

jesus dev

unread,
Apr 5, 2021, 5:24:35 AM4/5/21
to tesseract-ocr
In my opinion, concurrent processing is not impossible at all.
That's because there will be text areas which are calculated on preprocessing and east steps, and each area has no mutual relationship.
It will be effective to use multi thread functions if the device has more than 1 cpu, meaning it supports multi processing.
Could you explain me more clearly about the possibility?

Thanks.
Reply all
Reply to author
Forward
0 new messages