Game reactive LEDs with Python, OpenCV and Arduino

Using OpenCV screen detection, trigger LEDs based on something on your screen

Dec 2, 2022

3443 views

0 respects

Components and supplies

1

Male/Female Jumper Wires

1

RGB Diffused Common Cathode

1

Resistor 220 ohm

1

Jumper wires (generic)

1

Breadboard (generic)

1

Arduino UNO

Project description

Code

mainDetection

python

The object detection loops that utilize openCV and sends the commands to arduino

Arduino File

arduino

The code that allows the Arduino to read the commands from the serial port and triggers the LEDs

templateMatching

python

Used to get an idea of the needle location and confidence values

windowCapture

python

Uses the win32api to take rapid screenshots and return them

Downloadable files

Wiring diagram

Simple RGB setup using the 6 available PWM pins

Wiring diagram

Image

Comments

Only logged in users can leave comments

v1ckery

0 Followers

0 Projects

0