Final project of the Computer Vision course The project is divided into:
- Camera Calibration
- Security system
- Basketball MiniGame
The main material used for the project includes a RaspberryPi and camera (module 3 120ºFOV wide), build together as seen in the image setup
Also, the block diagram of the whole program is the following one
Security system:
- The user must show the right password in order to advance to the Minigame.
- The codes are different dispositions of 4 colours in the corners of a square or a diamond-like form.
- Each complete password has 4 "steps" or codes, meaning 4 dispositions of colours, and must be entered in order.
- To verify the code, the user must fist initialize the searching of such code, using a black tablet.
- Showing the tablet gives you a time to show the right step, if it's not shown you must restart from the first step.
Some example patterns could possibly be:
And here is an example of the programm correctly detecting a pattern:
Basketball MiniGame Identification
- At the start, the camera will look for the hoop according to the colour set, and show it.
- It will then find the regions on top and below said hoop, showing them as well.
- When the top and bottom region dissapear, you may commence the minigame.
Basketball MiniGame Play Mode
- A tracker will find and draw over the movement of the ball.
- The score will appear in the screen, as well as a rectangle over the hoop.
- If the ball goes through the hoop, a point will be added to the score and the hoop will go green.
- Score as many as you can!
Here is a short video of how the basketball minigame works
For any further clarifications about this project please check the complete report