The aim of this project is to detect rectangles in the given input image and provide a output image with detected rectangles.
Python3
- Numpy
- OpenCV
-
Download the folder Rectangle_Box_Detection
-
To run the server
a. Write command pip install -r requirements.txt where the directory is present
b. Next write python manage.py migrate
c. Next write python manage.py runserver
-
This will run server on 5000 local port
-
Select choose file and upload the input image.
Refer to edge_detection.py in challenge folder under uploads for actual rectangle detection code.
-
The output image is generated in the challenge folder under uploads.
-
The command line provides the co-ordinates of the detected boxes in JSON format.