A C D E F G I O P R S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- addRecognitionData(String, float) - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Add metadata obtainable after face recognition.
- AutoFitTextureView - Class in com.libremobileos.yifan.face
-
A
TextureView
that can be adjusted to a specified aspect ratio. - AutoFitTextureView(Context) - Constructor for class com.libremobileos.yifan.face.AutoFitTextureView
- AutoFitTextureView(Context, AttributeSet) - Constructor for class com.libremobileos.yifan.face.AutoFitTextureView
- AutoFitTextureView(Context, AttributeSet, int) - Constructor for class com.libremobileos.yifan.face.AutoFitTextureView
C
- com.libremobileos.yifan.face - package com.libremobileos.yifan.face
- compare(float[]) - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Compare two
FaceScanner.Face
s - compare(float[], float[]) - Static method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Static method to compare two
FaceScanner.Face
s. - compare(FaceScanner.Face) - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Compare two
FaceScanner.Face
s - convertYUV420ToARGB8888(byte[], byte[], byte[], int, int, int, int, int, int[]) - Static method in class com.libremobileos.yifan.face.ImageUtils
- create(Context) - Static method in class com.libremobileos.yifan.face.FaceScanner
-
Create
FaceScanner
instance with sensible defaults regarding hardware acceleration (CPU, XNNPACK, 4 threads). - create(Context, boolean, boolean, int) - Static method in class com.libremobileos.yifan.face.FaceScanner
-
Create
FaceScanner
instance. - create(Context, float) - Static method in class com.libremobileos.yifan.face.FaceDetector
-
Create
FaceDetector
instance with sensible defaults regarding hardware acceleration (CPU, XNNPACK, 4 threads). - create(Context, float, boolean, boolean, int) - Static method in class com.libremobileos.yifan.face.FaceDetector
-
Create
FaceDetector
instance. - create(Context, float, int, int, int) - Static method in class com.libremobileos.yifan.face.FaceFinder
-
Create new
FaceFinder
instance with sensible defaults regarding hardware acceleration (CPU, XNNPACK, 4 threads). - create(Context, float, int, int, int, boolean, boolean, int) - Static method in class com.libremobileos.yifan.face.FaceFinder
-
Create new
FaceFinder
instance. - create(Context, FaceStorageBackend, float, int, int, int, float, float) - Static method in class com.libremobileos.yifan.face.FaceRecognizer
-
Create
FaceRecognizer
instance, with matching model ratio constraint and sensible defaults regarding hardware acceleration (CPU, XNNPACK, 4 threads). - create(Context, FaceStorageBackend, float, int, int, int, float, float, boolean, boolean, int) - Static method in class com.libremobileos.yifan.face.FaceRecognizer
-
Create
FaceRecognizer
instance, with matching model ratio constraint. - create(Context, FaceStorageBackend, float, int, int, int, float, int) - Static method in class com.libremobileos.yifan.face.FaceRecognizer
-
Create
FaceRecognizer
instance, with minimum matching model constraint and sensible defaults regarding hardware acceleration (CPU, XNNPACK, 4 threads). - create(Context, FaceStorageBackend, float, int, int, int, float, int, boolean, boolean, int) - Static method in class com.libremobileos.yifan.face.FaceRecognizer
-
Create
FaceRecognizer
instance, with minimum matching model constraint.
D
- decode(String) - Static method in class com.libremobileos.yifan.face.FaceDataEncoder
-
Decode face model encoded by
FaceDataEncoder.encode(float[][])
- delete(String) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Delete all references to a face.
- deleteInternal(String) - Method in class com.libremobileos.yifan.face.DirectoryFaceStorageBackend
- deleteInternal(String) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Delete all references to a face.
- deleteInternal(String) - Method in class com.libremobileos.yifan.face.SharedPreferencesFaceStorageBackend
- deleteInternal(String) - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- detectFace(FaceScanner.InputImage, boolean) - Method in class com.libremobileos.yifan.face.FaceScanner
-
Scan the face inside the
FaceScanner.InputImage
. - detectFaces(FaceDetector.InputImage) - Method in class com.libremobileos.yifan.face.FaceDetector
-
Detect multiple faces in an
FaceDetector.InputImage
and return their locations. - DirectoryFaceStorageBackend - Class in com.libremobileos.yifan.face
-
FaceStorageBackend
to store data in a directory. - DirectoryFaceStorageBackend(File) - Constructor for class com.libremobileos.yifan.face.DirectoryFaceStorageBackend
E
- encode(float[][]) - Static method in class com.libremobileos.yifan.face.FaceDataEncoder
-
Encode face model to string.
- extendRegistered(String, float[], boolean) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Adds 1D face model to existing 2D face model to improve accuracy.
F
- FaceDataEncoder - Class in com.libremobileos.yifan.face
- FaceDataEncoder() - Constructor for class com.libremobileos.yifan.face.FaceDataEncoder
- FaceDetector - Class in com.libremobileos.yifan.face
-
Detect multiple faces in one large
Bitmap
and returnsFaceDetector.Face
objects. - FaceDetector.Face - Class in com.libremobileos.yifan.face
-
An immutable result returned by a
FaceDetector
describing what was recognized. - FaceDetector.InputImage - Class in com.libremobileos.yifan.face
-
Wrapper around
Bitmap
to avoid user passing unprocessed data - FaceDetector.InputImageProcessor - Class in com.libremobileos.yifan.face
-
Processes
Bitmap
s to compatible format - FaceFinder - Class in com.libremobileos.yifan.face
-
Combination of
FaceDetector
andFaceScanner
for workloads where both face detection and face scanning are required. - FaceRecognizer - Class in com.libremobileos.yifan.face
-
Task-specific API for detecting & recognizing faces in an image.
- FaceRecognizer.Face - Class in com.libremobileos.yifan.face
-
Stores a combination of
FaceScanner.Face
andFaceDetector.Face
, for face recognition workloads - FaceScanner - Class in com.libremobileos.yifan.face
-
Raw wrapper around AI model that scans ONE Face inside a perfectly cropped Bitmap and returns facial features.
- FaceScanner.Face - Class in com.libremobileos.yifan.face
-
An immutable result returned by a FaceDetector describing what was recognized.
- FaceScanner.InputImage - Class in com.libremobileos.yifan.face
-
Wrapper around Bitmap to avoid user passing unprocessed data
- FaceScanner.InputImageProcessor - Class in com.libremobileos.yifan.face
-
Processes Bitmaps to compatible format.
- FaceStorageBackend - Class in com.libremobileos.yifan.face
-
Store Faces on disk (or in memory, or anywhere else, really).
- FaceStorageBackend() - Constructor for class com.libremobileos.yifan.face.FaceStorageBackend
G
- get(String) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Load 2D face model from storage.
- get(String) - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- getBrightnessHint() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Get information about image brightness/face light conditions
- getConfidence() - Method in class com.libremobileos.yifan.face.FaceDetector.Face
-
A score for how good the detection is relative to others.
- getCrop() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Optional, source bitmap
- getDetectionConfidence() - Method in class com.libremobileos.yifan.face.FaceRecognizer.Face
-
A score for how good the detection (NOT recognition, that's
FaceScanner.Face.getDistance()
) is relative to others. - getDistance() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
A score for how good the recognition is relative to others.
- getExtra() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Optional, raw AI output
- getInternal(String) - Method in class com.libremobileos.yifan.face.DirectoryFaceStorageBackend
- getInternal(String) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Load 2D face model from storage.
- getInternal(String) - Method in class com.libremobileos.yifan.face.SharedPreferencesFaceStorageBackend
- getInternal(String) - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- getLocation() - Method in class com.libremobileos.yifan.face.FaceDetector.Face
-
Optional location within the source image for the location of the recognized object.
- getLocation() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Optional location within the source image for the location of the recognized object.
- getModelCount() - Method in class com.libremobileos.yifan.face.FaceRecognizer.Face
-
How many models detected the face.
- getModelRatio() - Method in class com.libremobileos.yifan.face.FaceRecognizer.Face
-
How many models detected the face, ratio.
- getNames() - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Get all known faces
- getNames() - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- getNamesInternal() - Method in class com.libremobileos.yifan.face.DirectoryFaceStorageBackend
- getNamesInternal() - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Get all known faces
- getNamesInternal() - Method in class com.libremobileos.yifan.face.SharedPreferencesFaceStorageBackend
- getNamesInternal() - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- getTitle() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Display name for the recognition.
- getTransformationMatrix(int, int, int, int, int, boolean) - Static method in class com.libremobileos.yifan.face.ImageUtils
-
Returns a transformation matrix from one reference frame into another.
I
- ImageUtils - Class in com.libremobileos.yifan.face
- InputImageProcessor(int, int, int) - Constructor for class com.libremobileos.yifan.face.FaceDetector.InputImageProcessor
-
Create new
FaceDetector.InputImage
processor. - InputImageProcessor(Bitmap, int) - Constructor for class com.libremobileos.yifan.face.FaceScanner.InputImageProcessor
-
If the class gets instantiated, we enter a special mode of operation for detecting multiple faces on one large
Bitmap
. - isRecognized() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
-
Test if the face has already been recognized (if
FaceScanner.Face.addRecognitionData(String, float)
has been called)
O
- onMeasure(int, int) - Method in class com.libremobileos.yifan.face.AutoFitTextureView
P
- process(Bitmap) - Method in class com.libremobileos.yifan.face.FaceDetector.InputImageProcessor
-
Process
Bitmap
for use in AI model. - process(Bitmap) - Method in class com.libremobileos.yifan.face.FaceScanner.InputImageProcessor
-
In normal mode of operation, we take a perfectly cropped
Bitmap
containing one face and process it. - process(Bitmap, boolean) - Method in class com.libremobileos.yifan.face.FaceFinder
-
Process a Bitmap using
FaceDetector
, scanning the resulting found faces usingFaceScanner
after manually cropping the image. - process(Bitmap, int) - Static method in class com.libremobileos.yifan.face.FaceScanner.InputImageProcessor
-
In normal mode of operation, we take a perfectly cropped
Bitmap
containing one face and process it. - process(RectF) - Method in class com.libremobileos.yifan.face.FaceScanner.InputImageProcessor
-
In special mode of operation, we crop the image to detect multiple faces on one large
Bitmap
(in multiple passes).
R
- recognize(Bitmap) - Method in class com.libremobileos.yifan.face.FaceRecognizer
-
Detect faces and scan them
- register(String, float[]) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Store 1D face model by converting it to 2D and then calling
FaceStorageBackend.register(String, float[][])
.
Implementation looks like this:return register(rawname, new float[][] { alldata })
). - register(String, float[][]) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Register/store new face.
- register(String, float[][], boolean) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Register/store new face.
- register(String, float[][], boolean) - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
- registerInternal(String, String, boolean) - Method in class com.libremobileos.yifan.face.DirectoryFaceStorageBackend
- registerInternal(String, String, boolean) - Method in class com.libremobileos.yifan.face.FaceStorageBackend
-
Register/store new face.
- registerInternal(String, String, boolean) - Method in class com.libremobileos.yifan.face.SharedPreferencesFaceStorageBackend
- registerInternal(String, String, boolean) - Method in class com.libremobileos.yifan.face.VolatileFaceStorageBackend
S
- setAspectRatio(int, int) - Method in class com.libremobileos.yifan.face.AutoFitTextureView
-
Sets the aspect ratio for this view.
- SharedPreferencesFaceStorageBackend - Class in com.libremobileos.yifan.face
-
FaceStorageBackend
storing data inSharedPreferences
- SharedPreferencesFaceStorageBackend(SharedPreferences) - Constructor for class com.libremobileos.yifan.face.SharedPreferencesFaceStorageBackend
-
Create/load
SharedPreferencesFaceStorageBackend
T
- toString() - Method in class com.libremobileos.yifan.face.FaceDetector.Face
- toString() - Method in class com.libremobileos.yifan.face.FaceScanner.Face
V
- VolatileFaceStorageBackend - Class in com.libremobileos.yifan.face
-
In-memory FaceStorageBackend, bypassing encoding and storage, relying on cache entirely for performance
- VolatileFaceStorageBackend() - Constructor for class com.libremobileos.yifan.face.VolatileFaceStorageBackend
All Classes All Packages