Utills class

Constructors

Utills()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

calculatedRect(double imageWidth, double imageHeight) → ({Rect calculatedRect, double centerXEnd, double centerXStart, double centerYEnd, double centerYStart})
cropImage(Image originalImage) → dynamic
cropImageToCenterBox(Uint8List imageBytes, Rect calculatedRect) Future<Uint8List?>
forHead(Rect faceRect, Rect calculatedRect) Map<String, bool>
inputImageFromCameraImage(CameraImage image, CameraController? cameraController, List<CameraDescription> cameras, CameraLensDirection cameraLensDirection) → ({InputImage image, Size size})?
isAndroid13OrAbove() Future<bool>
isFace90Degrees(Face face) bool
isFaceCentered(Rect faceRect, Size? previewSize1) bool
isFaceInCenterBox(Rect faceRect, double centerXStart, double centerXEnd, double centerYStart, double centerYEnd) bool
isFacePresent(Uint8List uint8list) Future<(bool, bool)>
isFaceStable(Rect newRect, Rect _lastFaceRect) bool
isFaceState(Face face) bool
isMouthHorizontallyCentered(double centerXStart, double centerXEnd, Map<FaceContourType, FaceContour?> contours) bool
isMouthVerticallyCentered(double centerYStart, double centerYEnd, Map<FaceContourType, FaceContour?> contours) bool
isNoseInBox(double imageHeight, double centerXStart, double centerXEnd, Map<FaceContourType, FaceContour?> contours) bool
printLogs(dynamic msg) → void
requestCameraPermission() Future<bool>
requestMediaPermissions() Future<bool>
requestStoragePermissions() Future<bool>
setOrientation() → dynamic
showSnackbar(BuildContext context, String msg) → dynamic