Skip to content

Latest commit

 

History

History
 
 

gen2-fatigue-detection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

中文文档

Gen2 Fatigue Detection

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

Demo:

Fatigue detection

Pre-requisites

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.