GStreamer Face Blur

This samples uses the Xnor Python bindings with GStreamer to display video from your webcam but with faces blurred out of the scene. It uses a face detection model to determine which parts of the image are the face, then blurs those pixels. To run this sample, you must have GStreamer installed and a webcam available on your device.

Language

Python

Location

xnor-sdk-linux-x86_64/samples/python/gstreamer_live_face_blur.py

Dependencies

pycairo, pygobject, GStreamer (via system package manager), an installed Xnor segmentation model.

Compatible Xnor Models

All face detector models (found at AI2GO).

Example Usage

python3 gstreamer_live_face_blur.py