- Humand Detector
- Spring Framework
To run the humandetector, follow this instruction:
- Open command prompt
- Go to the directory where all three files humandetector.py, preprocess.py, boundingbox.py are present.
- type command python to start python console
- Then follow this commands:
import humandetector as hd
hd.findhumans('path where all the images are stored')
E.g. 'C:/CV_Task Examples/'
Note:
Do not forget to put '/' at the end of your path
If access denied error occurs, try to run it again or check access privilages on the image folder
Input Path format must be: 'C:/CV_Task Examples/'
Try to run this script as administrator if you have access issues
Technique: Otsu's thresholding method with basic image processing
Time Complexity: Less than 1 sec per image
Accuracy: ~95%
Steps:
1.Load the image and read it as a grayscale
2.Downsample the image by 60%
3.Threshold the image
4.Consider forground pixels as human
5.Label the image and find regionprops
6.Draw bounding box around the interested regionprops
To deploy this service, run client.java