An intelligent tool to predict fitting polygons given the bounding box around the region.
This system takes in an input image and Bounding Box coordinates around a region for annotation in document image and outputs a tight fitting bounding polygon around the region.
Install requirements stated in requirements.txt
- Download the model from this link
- Place the
Final.pth
file in the folder (Semi-Supervised-Bounding-Box-Predictor/ssbbox/
) - Run the script(
Semi-Supervised-Bounding-Box-Predictor/ssbbox/toolscript.py
) as ->
python3 toolscript.py --img path/to/your/image --bbox x,y,w,h
- This outputs the final result in terms of X and Y (in new lines) coordinates respectively.