Patches

Face Detection

Face Detection

Detect faces in a still image, video, or from a camera stream.

All the outputs are loops of the same size; and the indices of each loop matches with every other output. For example, Left Eye Position [3] and Face Size [3] both correspond to the same Face at index 4.

Face Detection

  • Enable
  • Layer
  • Max Faces
  • Quality
  • Positioning
  • Face Detected
  • Face Position
  • Face Size
  • Face Angle
  • Left Eye Detected
  • Left Eye Position
  • Right Eye Detected
  • Right Eye Position
  • Mouth Detected
  • Mouth Position
  • Tracking ID

Enable

A Boolean value that is true when detection is enabled.

Layer

An Image or Video layer to search for faces.

Max Faces

Limit the number of faces.

Quality

Specify the accuracy of the detection. Higher quality detection requires more processing time.

Positioning

Determine if the output values are converted to the relative position on the layer or it’s using the absolute values of the content of the layer. ex. A video layer can be 300x300 but its content 1920x1080.

Face Detected

A Boolean value that is true when at least one face has been detected.

Face Position

A Loop of origin positions for each detected face.

Face Size

A Loop of sizes for the region for each detected face.

Face Angle

A Loop with the rotation of each detected face.

Left Eye Detected

A Loop of Boolean values that is true for each face where the detector found the left eye.

Left Eye Position

A Loop of positions for the left eye of each face if available, otherwise the position is 0,0 so you might need to check if Left Eye Detected is true.

Right Eye Detected

A Loop of Boolean values that is true for each face where the detector found the right eye.

Right Eye Position

A Loop of positions for the right eye of each face if available, otherwise the position is 0,0 so you might need to check if Right Eye Detected is true.

Mouth Detected

A Loop of Boolean values that is true for each face where the detector found the mouth.

Mouth Position

A Loop of positions for mouth of each face if available, otherwise the position is 0,0 so you might need to check if Right Eye Detected is true.

Tracking ID

A Loop of Integer values that tries to identify the same face from a previous frame. This ID persists as long as the face is in the frame. Only available when High quality is selected.