Ask Your Question
1

Scene Text Recognition with OpenCV in JAVA

asked 2016-05-24 09:26:51 -0600

ggmendez gravatar image

updated 2016-05-26 04:37:14 -0600

I need to perform scene text recognition with OpenCV as explained in its official documentation. However, because of some inevitable technical constraints I need to do it using the Java wrapper of the library.

I have had a look at two official examples included with OpenCV: an end to end recognition demo and one that uses the webcam. The core functionality of these examples is based on the use of an ERFilter, which performs the actual classification given an image.

I have managed to compile OpenCV's source code (version 3.1.0) with the support of the text module available at the repository of extra modules. However, I have not been able to locate an ERFilter Java class (or any equivalent functionality) within the Java wrapper that results after my compilation process. In fact, I have not been able to find any importable option similar to org.opencv.text, which is my guess on where such a class might be.

Does anyone have any idea on how to do this with the Java API provided by the compiled library?

Any approach on how to translate the official C++ code into its corresponding Java version?

Your suggestions would be very much appreciated.

edit retag flag offensive close merge delete

Comments

There is simply no wrapper for the contrib modules yet if I am correct inside the Java API. And it seems that I am correct looking at the Java docs!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-05-26 06:02:32 -0600 )edit

Has this been added to the Java wrapper yet?

xpro gravatar imagexpro ( 2017-06-16 01:55:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-05-26 13:12:55 -0600

there is a Pull Request that was not merged yet. you could manually edit opencv_contrib/modules/text/CMakeLists.txt and try to recompile OpenCV.

PS: i tried to do what i stated but i failed to recompile opencv-310.jar. maybe it needs to find tesseract. ( i have not tesseract installed)

edit flag offensive delete link more

Comments

well how about chooising an env which works for you and write a rest or amqp wrapper around it. This way you can still consume in java but you can keep things isolated(micro service). Maybe thats easier than trying to blob everything together...

holger gravatar imageholger ( 2018-11-15 08:53:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-05-24 09:26:51 -0600

Seen: 3,426 times

Last updated: May 26 '16