-
Notifications
You must be signed in to change notification settings - Fork 751
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 support for OpenCV text module #168
Comments
BTW, you could use Tesseract directly... |
For the scene text recognition I may be able to use Tesseract directly. However, at least the scene text detection part from OpenCV is required (OpenCV doc). I removed the include of <opencv2/text/ocr.hpp> but still get a issue: The related generated jniopencv_text.cpp code looks like this:
|
Maybe modifying this line from .put(new Info("cv::Vec2i").pointerTypes("Point")) this way: .put(new Info("cv::Vec2i").cast().pointerTypes("Point")) would fix this issue. |
Let me know if you are encountering any other errors. I can help with that. Thanks! |
In the OpenCV preset the text module (Scene Text Detection & Scene Text Recognition) is currently disabled.
Would it be possible to enable this module as well? As far as I know this module also has dependencies to Tesseract and Leptonica. How should these dependencies be represented in JavaCpp?
I would be happy to contribute to enable this module. However, I would need some guidance as I am lacking experience with JavaCpp. I already enabled the text module in cppbuild.sh and created a src/main/java/org/bytedeco/javacpp/presets/opencv_text.java file with the following contents:
I get a lot of errors during the build of the generated jniopencv_text.cpp file, like the following:
The text was updated successfully, but these errors were encountered: