Skip to content

Files

Latest commit

3e02317 · Apr 22, 2021

History

History
This branch is 871 commits behind luxonis/depthai-experiments:master.

gen2-head-posture-detection

中文文档

Gen2 Head posture detection

This example demonstrates the Gen2 Pipeline Builder running face detection network and head detection network

Demo:

head detection

Pre-requisites

  1. Purchase a DepthAI model (see shop.luxonis.com)
  2. Install requirements
python -m pip install -r requirements.txt

Usage

usage: main.py [-h] [-nd] [-cam] [-vid VIDEO]

optional arguments:
   -h, --help            show this help message and exit
   -nd, --no-debug       Prevent debug output
   -cam, --camera        Use DepthAI 4K RGB camera for inference (conflicts with -vid)
   -vid VIDEO, --video VIDEO
                           Path to video file to be used for inference (conflicts with -cam)

Run the program using the device

python main.py -cam

Run the program using video

python main.py -vid <path>

Press 'q' to exit the program.