简体   繁体   中英

How to implement pytesseract code with opencl to make it run on GPU?

I ran OCR on a document using pytesseract . Results were very good but it took a very long time.

Now I would like to run that code on GPU. The official tesseract documentation says that we can run code on GPU using opencl but I haven't found any implementation till now. Can anyone please explain how should I proceed?

Where the official tesseract documentation says that we can run code on GPU using opencl ? There is experimental and unsupported implementation of opencl for small part of code, but it does not do any significant improvement.

If you are interested in speed improvement, that have a look at possibilities to run tesseract faster + use tesseract wrapper (or write your own - see SimpleTesseractPythonWrapper ) that use its API instead of wrapping tesseract executable (eg pytesseract).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM