Removes unnecessary white space from the background of an image.
- First clone this repository and extract the files in a folder.
- Open terminal and type "python GUI.py". Hit enter.
- A home screen as shown will appear.
- Choose an image which is to be cropped. Click "Choose Image" for this. On clicking it, the following screen will appear.
- Now click "Confirm Auto Crop" to start automatic cropping of whitespace background.
- A dialog will appear which will ask you to tell the saving location.
- After the processing is done, the cropped image will be saved automatically on the specified location.
Let us see a sample.
This image was given to the app.
And the output was this.
I know, the output seems exactly same as the input, but that's not the case. Actually, because of whitespaced background of orignal and resultant image, both seems to be same. You can check the input image yourself at this link: https://github.com/hmnhGeek/WhiteSpace-AutoCrop/blob/master/Images/3.png and the output result here on this link: https://github.com/hmnhGeek/WhiteSpace-AutoCrop/blob/master/Images/done.jpg.