How to run it:
- First, store this Python code in any directory you prefer.
- Next, create a Python virtual environment using the command
python -m venv venv. - Then, activate the virtual environment with
source ./venv/bin/activateand install the necessary dependencies usingpip install numpy opencv-python opencv-python-headless. - Copy all image directories with appropriate names. For example:
.
|-- 04
|-- 05
|-- 06