Pygame integrates with OpenCV to deploy pre-trained deep learning-based face detector. The breakout game uses x-coordinate of a detected face to control the paddle.
The following software/packages are required to run this project.
- Python3
- OpenCV(3.3 or greater)
- pygame(1.9.4 or greater)
- imutils (computer vision/image processing Python package created by the author of pyimagesearch.com)
$ python3 main.py -p deploy.prototxt.txt -m res10_300x300_ssd_iter_140000.caffemodelOpenCV 3.3 ships with following ready-to-use deep learning-based face detector.
deploy.prototxt.txtdefines the architecture of pre-trained modelres10_300x300_ssd_iter_140000.caffemodelis an actual pre-trained deep learning-based face detection model
more information about the face detector can be found here
This project is licensed under the MIT License - see the LICENSE.txt file for details
The code on post(pyimagesearch by Adrian Rosebrock) is repurposed in face_detect.py.
This project uses the following open-source art:
- The image used for the ball, bricks, paddle
- Background music by FoxSynergy
- Various sound effects are created on Bfxr
