java.lang.Object | |
↳ | com.google.android.gms.vision.face.LargestFaceFocusingProcessor.Builder |
Builder for creating a LargestFaceFocusingProcessor.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a LargestFaceFocusingProcessor builder.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds the LargestFaceFocusingProcessor instance.
| |||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a LargestFaceFocusingProcessor builder.
Parameters | |
---|---|
detector |
Detector :
detector instance which detects/tracks the associated face |
tracker |
Tracker :
tracker instance which receives events for the associated face
|
Builds the LargestFaceFocusingProcessor instance.
Returns | |
---|---|
LargestFaceFocusingProcessor |
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 |
int :
tolerance, measured in number of frames received, for determining when a
tracked item is no longer visible
|
Returns | |
---|---|
LargestFaceFocusingProcessor.Builder |