Go to file
Kristofers Solo 084579d03c
Merge pull request #1 from kristoferssolo/description
Pievienoju projekta aprakstu
2022-12-24 12:21:46 +02:00
.github/workflows Fixed python versions 2022-12-10 17:00:15 +02:00
assets/haar Added TrafficLight HAAR 2022-12-17 16:40:49 +02:00
media Update README.md 2022-12-24 11:55:54 +02:00
src/TrafficLightDetector Moved paths.py 2022-12-24 11:37:04 +02:00
tests Added blank test 2022-12-10 17:00:27 +02:00
.gitignore Added playing sound option 2022-12-22 16:02:26 +02:00
DESCRIPTION.md Pievienoju projekta aprakstu 2022-12-24 12:15:10 +02:00
LICENSE Initial commit 2022-12-01 18:32:00 +02:00
main.py Update main.py 2022-12-24 11:37:47 +02:00
pyproject.toml Fix typo 2022-12-24 12:05:13 +02:00
README.md Added DESCRIPTION.md 2022-12-24 12:11:55 +02:00
requirements_dev.txt Enabled mypy warn_unreachable 2022-12-11 17:47:09 +02:00
requirements.txt Removed PyGOobject from dependencies 2022-12-24 12:07:13 +02:00
setup.cfg Removed PyGOobject from dependencies 2022-12-24 12:07:13 +02:00
setup.py Added configuration files 2022-12-04 19:07:56 +02:00
tox.ini Added configuration files 2022-12-04 19:07:56 +02:00

Traffic Light Detector

Traffic Light recognition and color detection

Tests

Description

See DESCRIPTION.md

Red light

Installation

git clone https://github.com/kristoferssolo/Traffic-Light-Detector
cd Traffic-Light-Detector
pip install .

Examples

./main.py -- Creates necessary directories in /assets/

./main.py -i -- Detects traffic lights and their signal color for all files located in /assets/images_in/ and saves them in /assets/images_out/.

./main.py -c <int> -- Uses webcam or any camera connected to detect traffic lights in real time.

./main.py -sc <int> -- Plays the sound file located in /assets/sound/move.mp3 whenever a green light is detected by camera.

Tip

Replace <int> with your camera number specified by the operating system. Probably 0 or 1, but can be higher.

To Do

  • Write unit tests.
  • Create/find better traffic light model for better traffic light recognition.