apm1467 / videocr

Extract hardcoded subtitles from videos using machine learning
MIT License
506 stars 117 forks source link

Could it support GPU Acceleration? #18

Open Lwt-127 opened 4 years ago

Lwt-127 commented 4 years ago

It would be more efficiency with GPU Acceleration. Is it possible to support GPU Acceleration?

VladiStep commented 3 years ago

@Lwt-127, it's possible, only if you build (compile) Tesseract (text recognition library) with OpenCL (GPU Acceleration library) support, but:

Important note: OpenCL support in Tesseract is still considered experimental. There are some major bugs associated with it (see issue 837). Building Tesseract with OpenCL support is not recommended (for any version of Tesseract), unless you are a developer and want to improve the OpenCL code.

So, if you want to try, go here for the instructions.

devmaxxing commented 2 years ago

I've created a fork of this library that uses the newer PaddleOCR library which does support GPU: https://github.com/oliverfei/videocr-PaddleOCR