Skip to content

Latest commit

 

History

History
 
 

gen2-head-posture-detection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

中文文档

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.