Skip to content

Latest commit

 

History

History
 
 

gen2-mask-detection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

中文文档

Gen2 Mask / NO-Mask detection

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

Demo:

mask 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.