Upon uploading an image, they will be given an output image which is smartly cropped, which removes unnecessary parts of an image, and tries to retain the main feature
To setup the project :
- Clone this repo
- Execute the script "make_all.sh"
- This will install "ROD and ROI" apis respectively.
- For ensuring check the pip list
- It should contain "rod-align-api 0.0.0" and "roi-align-api 0.0.0" respectively.
- Execute demo_eval.py for seeing the results
- Execute trail_eval.py for configuring the project as an API.
Input : ( 1.2 MB and dimensions(3000 * 2000) )
Output : ( 974 KB and dimensions(2000 * 1834) )
Current Drawbacks
- Sometimes the size of an image might increase after cropping
- Might not be that effective at times
The above project is a modified version of this repo, and made it compatible with the latest versions of pytorch.