Home

Awesome

FlapPyBlink

This project has been created for a class in our computer science study called AI in robotics.

This is an extension of the base game called FlapPyBird. This extension has a blink detection implemented, which works as a control for the bird and basically simulates a space bar press when it notices a blink. The blink detection doesn't care about how many persons are in the image, so multiple persons can play this in theory.

Requirements and customization

You will need on top of the base game requirements CV2 installed on your machine, so that the face recognition can work. The Haarcascade files are from OpenCV and uses for face recognition. If you want to use your custom files, you can replace the files under haarcascades.

Select the correct camera by its ID

My camera ID was 2, yours is most likely 0. If your camera doesn't work simply replace the CAMERA_ID variable at the very beginning of flappy.py in line 14 to the ID you got. If you don't know it, just try by incrementing beginning from 0 (like 0, 1, 2, 3, ...)

Instructions on how to get this game running

Change to your own haarcascades

Tips:

Known issues:

Note that this is just an experimental project and not a real game. You can have fun using it, but don't bother when it has issues.

Credits

Many credits go out to the original creator sourabhv of the base game used in this project.