Computer vision service of the parking lot occupancy recognition system. The repository is a part of a multi-service SpotGather system.
To successfully setup and run the vision kernel, your system must meet the following requirements:
- Linux OS (tested on Debian-based distributions)
- Python 3.12 or higher
poetryand thepoetry-dotenv-plugin
poetry self add poetry-dotenv-pluginTo run the vision service, execute the following commands in the Linux terminal:
git clone https://github.com/AKrekhovetskyi/spot-gazer-vision.git
cd spot-gazer-visionCreate an .env file from .env.sample and set the necessary variables
mv .env.sample .envInstall dependencies:
poetry install
pre-commit install --install-hooksMake sure the Django server of the SpotGazer Backend service is up and running. Then run SpotGazer Vision:
poetry run python -m run_predictionMake sure to install pre-commit and its hooks before making any commits:
pre-commit install --install-hooksRun the tests with the following command:
poetry run pytest tests -vv -s -rASometimes it might be necessary to add the ./src folder to the Python path so that to run the tests:
export PYTHONPATH=${PYTHONPATH}:$(pwd)/src