Skip to content

Instantly share code, notes, and snippets.

View SHRIMANGALESH's full-sized avatar
🌴
On vacation

SHRIMANGALESH U.M SHRIMANGALESH

🌴
On vacation
View GitHub Profile
@SHRIMANGALESH
SHRIMANGALESH / face-boxer-usage.md
Created July 23, 2023 22:54 — forked from dannguyen/face-boxer-usage.md
A face-detection script in Python

This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.

Usage

The face-boxer.py script is designed to be run from the command-line. It has two required arugments:

  1. The path to a XML file containing a Haar-cascade of visual features. In this example, it will be the features that make up a face.
  2. The path to an image file that you want to perform face-detection on. You can pass in more than one image file as space-separated arguments.