git clone https://github.com/mpolinowski/opencv-python.git
cd opencv-python
python -m venv .env
pip install opencv-python numpy
You can re-enter the environment with:
source .env/bin/activate
Just run the scripts in Python, e.g.:
python ./09_face_detection.py