This is a computer vision project that detects location of available parking slots and total available slots available as shown in the upper left of the gif above.
The availability of a slot is detected by counting the number of nonzeros in each box for each slot.
we can see here that the white pixels indicating that there is something in the slot. The number of nonzero pixels is counted for each slot and compare it to a threshold to decide if it is available or not.
setup environment using venv
python3.10 -m venv .env
load project environment (windows)
.\.env\Scripts\activate
install required libraries
pip install -e .
prepare data
python load_data.py
run
cv_carpark
press 'q' key to stop