The package attempts to count faces using face detection and motion detection. It will be used on vending machines to calculate product attention and get traffic at that location.
pip install -r requirements.txt
# Need to download models when using real-time pose estimation.
bash model_download.shUse face_counter.py -
python face_counter.pyUse motion_detection.py
python motion_detection.pyUse transparent.py
python transparent.pyUse object_detection.py
python object_detection.py --prototxt data/MobileNetSSD/MobileNetSSD_deploy.prototxt.txt --model data/MobileNetSSD/MobileNetSSD_deploy.caffemodelUse calibrate_camera.py
python calibrate_camera.pyUse wide_angle_repair.py
python wide_angle_repair.pyUse pose_estimation.py
- MPI pretrained model
python pose_estimation.py --proto data/mpi/pose_deploy_linevec_faster_4_stages.prototxt --model data/mpi/pose_iter_160000.caffemodel --dataset MPI- Body_25 pretrained model
python pose_estimation.py --proto data/body_25/body_25_deploy.prototxt --model data/body_25/pose_iter_584000.caffemodel- COCO pretrained model
python pose_estimation.py --proto data/coco/deploy_coco.prototxt --model data/coco/pose_iter_440000.caffemodel --dataset COCOOverlay image enable (Boolean)
overlay_enable = TruePixel blurring (Tuple)
blur_pixel = (4, 4)Move detection thresh (Int) range: 1 - 255
move_detection_thresh = 64Minimum size of moving filter (Int) range: 0 - width*height
move_min_size = 2500Face detection times (Int) range: > 1
face_detection_times = 3 Minimum pixel of face filter (Tuple)
face_min_pixel = (120, 120)Face detection interval (Int) range: > 1
face_detection_interval = 1Motion detection average adjustment (Float)
avg_adjustment = 0.2Webcam frame width (Int)
width = 1280Webcam frame height (Int)
height = 960OpenCV data, from https://github.com/opencv/opencv
MobileNetSSD caffemodel, from https://github.com/PINTO0309/MobileNet-SSD-RealSense
Wide Angle Repair, from https://blog.csdn.net/donkey_1993/article/details/103909811
Calibrate Camera, from https://blog.csdn.net/Thomson617/article/details/103506391
Pose Estimation, from https://github.com/legolas123/cv-tricks.com