Fix Examples

This commit is contained in:
Kristofers Solo 2022-12-24 11:58:35 +02:00
parent cce179a065
commit 91759fb94f

View File

@ -18,8 +18,11 @@ pip install .
## Examples ## Examples
`./main.py` -- Creates necessary directories in `/assets/` `./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 -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 to detect traffic lights in real time. `./main.py -c <int>` -- Uses webcam or any camera to detect traffic lights in real time.
`./main.py -sc <int>` -- Plays sound file located in `/assets/sound/move.mp3` whenever green light signal is detected via camera. `./main.py -sc <int>` -- Plays sound file located in `/assets/sound/move.mp3` whenever green light signal is detected via camera.
Replace `<int>` with your camera number specified by the operating system. Probably `0` or `1`, but can be higher. Replace `<int>` with your camera number specified by the operating system. Probably `0` or `1`, but can be higher.