Skip to content
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

[offtopic] make a reimplementation in C++ #709

Open
Kromtar opened this issue Apr 12, 2022 · 17 comments
Open

[offtopic] make a reimplementation in C++ #709

Kromtar opened this issue Apr 12, 2022 · 17 comments

Comments

@Kromtar
Copy link

Kromtar commented Apr 12, 2022

I would like to know if the community that uses this repository would be interested in a C++ reimplementation. This OCR has given me excellent results so far. But the fact that it is in Python and uses Torch makes it difficult to compile it in an optimized way. I am planning to make an exact reimplementation of the current version of EasyOCR but in C++ and using TorchScript. It is a lot of work. Is anyone else looking for a solution like this?

Greetings

@euirim
Copy link

euirim commented Apr 17, 2022

I'm interested, particularly for inference. I don't have great C++ skills, but I may be able to write a bare bones Rust implementation that can compile into a C library.

@cfanatic
Copy link

I am interested, too.

@Cilouche
Copy link

Cilouche commented Jul 7, 2022

I'm interested, thanks

@BBO-repo
Copy link

Totally agree, easyocr give great results thanks so much to the author and contributors

Having a C++ implementation would be great. I'm coding in C++ for more than 5 years @Kromtar please let me know if I can help

@yunus-temurlenk
Copy link

count on me

@kevinkazzo
Copy link

I started this, anyone else start?

@BBO-repo
Copy link

BBO-repo commented Mar 15, 2023

On my side start working on translating the craft algorithm (used by easyocr for text detection) in C++.
If successful I'll try to go on with translating the text recognition algorithm

@kevinkazzo if you want we can join our effort?

@facug91
Copy link

facug91 commented Mar 19, 2023

It would be great if someone could do some kind of planning so that everyone willing to help can address those different issues without overlapping each other. I know it's a lot of work I'm proposing for the person who would do it, but it would help a lot to speed up development.

@BBO-repo
Copy link

Maybe this repository is a good starting point
https://github.com/jackvial/tuatara

@kevinkazzo
Copy link

sorry I forgot to update. I did this, will respond on my other github and upload the project and start allowing people to make PRs to improve it. Did not optimize it entirely, but got the detector and recognition network working in plain torchscript/ c++. Even got it in ONNX

@BBO-repo
Copy link

BBO-repo commented Sep 2, 2023

Great!
Looking forward to seeing it and testing.

@MinGiSa
Copy link

MinGiSa commented Sep 7, 2023

sorry I forgot to update. I did this, will respond on my other github and upload the project and start allowing people to make PRs to improve it. Did not optimize it entirely, but got the detector and recognition network working in plain torchscript/ c++. Even got it in ONNX

When can we expect to see your amazing project? :)

@SC-One
Copy link

SC-One commented Nov 12, 2023

[C++ software engineer]
you can count on me too.

@ksasso1028
Copy link

Hey all, this is @kevinkazzo, on my main account will post it up by tomorrow evening!

@ksasso1028
Copy link

hey all! uploaded here it is! - > https://github.com/ksasso1028/EasyOCR-cpp

@A2va
Copy link
Contributor

A2va commented Jan 24, 2024

For those who don't want to use libtorch, I implemented easyocr with opencv, onnxruntime and xtensor. This is not a full implementation, but I will include it in a library of mine that will come out later, for now it is just this.

The ONNX model is converted with the notebook provided by samiechan here

If you have any problems or suggestions about my code, I'm happy to listen to your suggestions/questions. I will edit this message to add CRAFT model when it's ready.

https://gist.github.com/A2va/64eea11018192284c7ce3db7bb3801bc

@BBO-repo
Copy link

BBO-repo commented Jan 24, 2024

Thank for those sharing, I'll give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests