-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PaddleOCR-Standalone and Batch mode support #9283
Conversation
Hi! @niksedk: subtitleedit/src/libse/SubtitleFormats/Pac.cs Lines 2772 to 2773 in a679c60
is not in the main repo. Are you aware of that? |
Yes, I did commit to the wrong repro... I did not know I could do that, LOL I will try to look at your PR tomorrow. Also, do you know what this is; https://github.com/PaddlePaddle/PaddleOCR/blob/main/deploy/cpp_infer/readme.md ? |
That would be really cool. :-) I've also added now batch mode support for PaddleOCR. I've had to change quite a few thing for this, but I tried to test everything to make sure that it works correctly. I'm quite happy how this turned out - I hope you like it aswell! :-) Regarding your link: I've not seen this before and have not tried this out. Also the instructions for Windows are only in chinese... Edit:
The Batch mode is soo much better. |
Thank you for your quick merge! I really appreciate it! :-) |
Thank you for making PaddleOCR a lot better in SE :) |
This PR adds support for the PaddleOCR-Standalone version I have also made.
This enables the usage of PaddleOCR without requiring the user to install python, paddlepaddle and paddleocr. Instead it prompts the user to download the standalone version, similar to when using tesseract 5.5.0 for the first time.
The PR still detects if the user installed PaddleOCR beforehand and does not prompt the user in this case to download PaddleOCR again.
Furthermore it checks if the system supports the GPU version or not. If not, the CPU version is used instead.
This PR also adds one of two desired features mentioned in #9250.
Edit: The second commit also adds Batch mode support when using PaddleOCR.
Fixes: #9250