Ask Your Question
0

Text Detection in Java Example

asked 2017-08-01 16:31:43 -0600

kaede gravatar image

Hi all,

Is there an example on how to use the Text module to detect text in Java? If so, can someone point me to one? Thanks.

It would be great to add that and more java example since the API is different from C/C++ and python.

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-02 07:09:05 -0600

PiMac gravatar image

Hi, I would suggest you read this post How to use KNearest in java?.

To actually use it you would need a learning set for text something like this THE MNIST DATABASE of handwritten digits.

Last case is to prepare your image as a (this is for digits.png in the 1st link) thresholded 20x20 square with white digit/letter in the middle of the square.

I too struggle sometimes with lack of examples for Java. Usually the easiest is to convert Python examples.

edit flag offensive delete link more

Comments

1

Thanks.
Hopefully, more Java example can be added.

kaede gravatar imagekaede ( 2017-08-02 10:53:35 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-08-01 16:31:43 -0600

Seen: 2,472 times

Last updated: Aug 02 '17