Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static class

# LargestFaceFocusingProcessor.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.vision.face.LargestFaceFocusingProcessor.Builder

## Class Overview

Builder for creating a LargestFaceFocusingProcessor.

## Summary

Public Constructors
| LargestFaceFocusingProcessor.Builder(Detector<Face> detector, Tracker<Face> tracker) Creates a LargestFaceFocusingProcessor builder.

Public Methods
LargestFaceFocusingProcessor | build() Builds the LargestFaceFocusingProcessor instance.
LargestFaceFocusingProcessor.Builder | setMaxGapFrames(int maxGapFrames) Sets the maximum allowable gap for inferring whether a face will never be seen again in the series of frames that are being processed by the detector.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## Public Constructors

#### public LargestFaceFocusingProcessor.Builder (Detector<Face> detector, Tracker<Face> tracker)

Creates a LargestFaceFocusingProcessor builder.

##### Parameters

detector | detector instance which detects/tracks the associated face
tracker | tracker instance which receives events for the associated face

## Public Methods

#### public LargestFaceFocusingProcessor build ()

Builds the LargestFaceFocusingProcessor instance.

#### public LargestFaceFocusingProcessor.Builder setMaxGapFrames (int maxGapFrames)

Sets the maximum allowable gap for inferring whether a face will never be seen again in the series of frames that are being processed by the detector. Default: 3

In video, a face may temporarily be undetectable in certain intermediate frames due to blurring associated with sudden camera movement or sudden extreme changes in lighting. This setting adds a tolerance, delaying onDone notification to the tracker during these temporary conditions.

##### Parameters

maxGapFrames | tolerance, measured in number of frames received, for determining when a tracked item is no longer visible