FaceImage class
A photo of a face: JPEG or PNG bytes, a file, or a picture from FacePingCameraController.capture.
Photos are turned upright from their EXIF orientation and scaled down to 1280 pixels on the device before anything else happens.
- Annotations
Constructors
- FaceImage.fromBytes(Uint8List bytes)
-
A JPEG or PNG (on iOS, also HEIC). Bytes that aren't a readable image fail with
FacePingInvalidArgumentException when the photo is used.
factory
- FaceImage.fromFile(String path)
-
A photo file on the device, for example from an image picker.
factory
Properties
- bytes → Uint8List?
-
The encoded photo, for FaceImage.fromBytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String?
-
The file, for FaceImage.fromFile.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited