LargestFaceFocusingProcessor.Builder
Stay organized with collections
Save and categorize content based on your preferences.
TheMobile Vision API is deprecated and no longer maintained.
It is now a part ofML Kit which includes all new on-device ML
capabilities. If you use Mobile Vision in your app today, follow the
migration guide .
Builder for creating a LargestFaceFocusingProcessor.
Public Constructor Summary
Builder (Detector<
Face >
detector, Tracker<
Face >
tracker)
Creates a LargestFaceFocusingProcessor builder.
Inherited Method Summary
From class java.lang.Object
Object
clone ()
boolean
void
finalize ()
finalClass <?>
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 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
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. 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
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License ,and code samples are licensed under theApache 2.0 License .For details, see theGoogle Developers Site Policies .Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label": "Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label": "Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label": "Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label": "Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label": "Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label": "Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label": "Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label": "Other"
}]