Skip to content

Repository files navigation

Pygame + OpenCV Breakout-Game with Face Dectection

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.

Prerequisites

The following software/packages are required to run this project.

Running the game

$ python3 main.py -p deploy.prototxt.txt -m res10_300x300_ssd_iter_140000.caffemodel

OpenCV 3.3 ships with following ready-to-use deep learning-based face detector.

  • deploy.prototxt.txt defines the architecture of pre-trained model
  • res10_300x300_ssd_iter_140000.caffemodel is an actual pre-trained deep learning-based face detection model

more information about the face detector can be found here

License

This project is licensed under the MIT License - see the LICENSE.txt file for details

Acknowledgments

The code on post(pyimagesearch by Adrian Rosebrock) is repurposed in face_detect.py.

This project uses the following open-source art:

About

Pygame + OpenCV Breakout-Game with Face Dectection

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages