This is an easy one. =)
We are looking for a Java Class to read an image using OpenCV + JavaCV libs and extract the squared space from the image.
Some examples of input images are given in attachment.
The needed Java Class should be able to cut the image, selecting the draw painted in the squared space, saving this draw in a ".jpg" file.
The class should be able also to eliminate the border of the squared box, considering just the inner portion of the draw.
We are expecting for a clear and well commented source code.
Another important requirement of this class is that it should be able to process images with different dimensions (sometimes it will have 1.000 pixels, sometimes 1.500 pixels etc; and sometimes the sheet will be a little distorted), but always in the same pattern of these sheets.