Uses functions from the OpenCV library to detect anomalies in light sources.
The below GIF highlights a simple example:
The below GIF illustrates a more difficult example, making use of a different threshold algorithm and swapping between image channels.
- Check that you have the correct python version installed, which can be found inside
.python-version
.- if you're unsure how to manage multiple python installations, pyenv is a good solution.
- If you're running this on a PC, it's good practice to create a virtualenv.
- Run the following command inside a terminal:
pip install -r requirements.txt
Via the command line:
python -m light_detection
This project uses pytest
for testing. in order to execute the tests, simply run pytest
in the root directory of the project.
- Rewrite to use
.kv
files where applicable :) - Allow a Video option instead of just static images
- (Possibly) Use Poetry or PDM for managing the project
- Add CI flow