Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to crop in java:
https://answers.opencv.org/question/125082/how-to-crop-image-after-extract-text-in-java/

Most difficult part would be to get the bounding box of the whole text reliably. In theory you could just take the most left, top, right, bottom inner countour, and voila you have a rect. But i am afraid find contours could also detect some noise(things which are no text). Look at your image on the very top right - the little hole in the paper. But maybe thats no problem for your use case - just try out.