faceblur: GStreamer Bad Plugins 1.0 Plugins Reference Manual

## faceblur faceblur |

## Properties

gchar * | profile | Read / Write
GstOpencvFaceBlurFlags | flags | Read / Write
gint | min-neighbors | Read / Write
gint | min-size-height | Read / Write
gint | min-size-width | Read / Write
gdouble | scale-factor | Read / Write

## Types and Values

struct | GstFaceBlur

## Description

Blurs faces in images and videos.

### Example launch line

    1
    gst-launch-1.0 autovideosrc ! videoconvert ! faceblur ! videoconvert ! autovideosink

## Synopsis

### Element Information

plugin | opencv
author | Michael Sheldon <mike@mikeasoft.com>,Robert Jobbagy <jobbagy.robert@gmail.com>
class | Filter/Effect/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw, format=(string)RGB, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name | src
direction | source
presence | always
details | video/x-raw, format=(string)RGB, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

## Functions

## Types and Values

### struct GstFaceBlur

    struct GstFaceBlur {
      GstOpencvVideoFilter element;

      gboolean sent_profile_load_failed_msg;

      gchar *profile;
      gboolean display;
      gdouble scale_factor;
      gint min_neighbors;
      gint flags;
      gint min_size_width;
      gint min_size_height;

      cv::Mat cvGray;
      cv::CascadeClassifier *cvCascade;
    };

## Property Details

### The `“profile”` property

      “profile”                  gchar *

Location of Haar cascade file to use for face blurion.

Owner: GstFaceBlur

Flags: Read / Write

Default value: "/usr/share/opencv/haarcascades/haarcascade_frontalface_default.xml"

### The `“flags”` property

      “flags”                    GstOpencvFaceBlurFlags

Flags to cvHaarDetectObjects.

Owner: GstFaceBlur

Flags: Read / Write

Default value: Do Canny edge detection to discard some regions

### The `“min-neighbors”` property

      “min-neighbors”            gint

Minimum number (minus 1) of neighbor rectangles that makes up an object.

Owner: GstFaceBlur

Flags: Read / Write

Allowed values: >= 0

Default value: 3

### The `“min-size-height”` property

      “min-size-height”          gint

Minimum window height size.

Owner: GstFaceBlur

Flags: Read / Write

Allowed values: >= 0

Default value: 30

### The `“min-size-width”` property

      “min-size-width”           gint

Minimum window width size.

Owner: GstFaceBlur

Flags: Read / Write

Allowed values: >= 0

Default value: 30

### The `“scale-factor”` property

      “scale-factor”             gdouble

Factor by which the windows is scaled after each scan.

Owner: GstFaceBlur

Flags: Read / Write

Allowed values: [1.1,10]

Default value: 1.25