Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Croping image after extracting text in JAVA

I'm trying to use android-opencv to recognize text in the picture and I want to do something like finding blocks of text in an image and crop them.

After croping image I will get some of text image and I plan to use them to do OCR in the future. For now I can detect the text regien in the image already by useing this algorithm guide from this link stackoverflow.com/questions/34271356/extracting-text-opencv-java

* My problem is I do not know how to Croping image after extracting text in java language. *

In my concept, I will crop the image from top to button and from left to right. After that put all of croped image in an array of MAT (I'm not sure that MAT function can do the array or not)

i.imgur.com/mZfM7H9.jpg [see my concept picture]

I do not know how to deal with them. Could anyone please help me, guide me, or give me some advice please ... Thanks in advance.

How to Croping Crop image after extracting extract text in JAVA

I'm trying to use android-opencv to recognize text in the picture and I want to do something like finding blocks of text in an image and crop them.

After croping image I will get some of text image and I plan to use them to do OCR in the future. For now I can detect the text regien in the image already by useing this algorithm guide from this link stackoverflow.com/questions/34271356/extracting-text-opencv-java

* My problem is I do not know how to Croping image after extracting text in java language. *

In my concept, I will crop the image from top to button and from left to right. After that put all of croped image in an array of MAT (I'm not sure that MAT function can do the array or not)

i.imgur.com/mZfM7H9.jpg [see my concept picture]

I do not know how to deal with them. Could anyone please help me, guide me, or give me some advice please ... Thanks in advance.