This project measures a person's height in feet & inches (or cm) in real time using:
- YOLOv8 Pose for human keypoint detection
- ArUco marker for accurate distance and camera pitch estimation
- Camera calibration + perspective correction
Tested and working with Python 3.11
Python 3.11 Create virtual environment
py -3.11 -m venv height-envenv\Scripts\Activatesource env/bin/activateRun this command once inside the activated environment:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118pip install opencv-python numpy ultralytics(If you don't have a CUDA GPU, use CPU-only torch: pip install torch torchvision torchaudio)
The script will automatically download yolov8n-pose.pt on first run.
Marker ID: 0
Dictionary: 6x6_250
You can generate it here: https://chev.me/arucogen/
On first launch, the script will ask you to calibrate using a chessboard (9×6). Print a standard chessboard pattern and follow on-screen instructions.