Go to file
Kristofers Solo 0af409cf1d Minor release update
Removed `setup.py` and its adjasant files.
Removed `tox`.
Wrote meta data in `pyproject.toml`.
Migrated from `playsound` to `magicsound` (not tested).
2023-09-09 23:08:40 +03:00
.github/workflows Minor release update 2023-09-09 23:08:40 +03: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 Minor release update 2023-09-09 23:08:40 +03:00
.gitignore Added playing sound option 2022-12-22 16:02:26 +02:00
DESCRIPTION.md Minor release update 2023-09-09 23:08:40 +03:00
LICENSE Update LICENSE 2023-02-22 22:25:33 +02:00
main.py Minor release update 2023-09-09 23:08:40 +03:00
pyproject.toml Minor release update 2023-09-09 23:08:40 +03:00
README.md Minor release update 2023-09-09 23:08:40 +03:00
requirements_dev.txt Minor release update 2023-09-09 23:08:40 +03:00
requirements.txt Minor release update 2023-09-09 23:08:40 +03:00

Traffic Light Detector

Traffic Light recognition and color detection

Tests

Description

See DESCRIPTION.md [lv]

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

  • Create/find better traffic light model for better traffic light recognition.