AI-generated Key Takeaways
-
FaceMeshDetectorOptions.Builder
is a class used to buildFaceMeshDetectorOptions
. -
You can create a new builder using the
Builder()
constructor. -
The
build()
method is used to create a face mesh detector instance from the builder. -
You can set a custom
Executor
using thesetExecutor()
method for advanced use cases. -
The
setUseCase()
method allows you to specify whether to detect only bounding boxes or the full face mesh with points and triangles, with the default being face mesh detection.
Builder class of FaceMeshDetectorOptions
.
Public Constructor Summary
Builder()
Creates a new builder to build
FaceMeshDetectorOptions .
|
Public Method Summary
FaceMeshDetectorOptions |
build()
Builds a face mesh detector instance.
|
FaceMeshDetectorOptions.Builder | |
FaceMeshDetectorOptions.Builder |
setUseCase(int useCase)
Sets the use case.
|
Inherited Method Summary
Public Constructors
public Builder ()
Creates a new builder to build FaceMeshDetectorOptions
.
Public Methods
public FaceMeshDetectorOptions build ()
Builds a face mesh detector instance.
public FaceMeshDetectorOptions.Builder setExecutor (Executor executor)
public FaceMeshDetectorOptions.Builder setUseCase (int useCase)
Sets the use case. By default it is
FaceMeshDetectorOptions.FACE_MESH
.
When
FaceMeshDetectorOptions.BOUNDING_BOX_ONLY
is selected, the returned
FaceMesh
only contains bounding box.
When
FaceMeshDetectorOptions.FACE_MESH
is selected, the returned FaceMesh
contains bounding box as well as 468 FaceMeshPoint
and triangle information. It detects at most 2 faces in this case and it is slower than
FaceMeshDetectorOptions.BOUNDING_BOX_ONLY
.