face_detection_camera library

Classes

CameraDescription
Properties of a camera device.
Face
A human face detected in an image.
FaceCameraController
Controller to manage the face detection camera state and logic. Bộ điều khiển để quản lý trạng thái và logic của camera phát hiện khuôn mặt.
FaceCameraMessageStrings
Custom strings for the default status messages. Các chuỗi tùy chỉnh cho các thông báo trạng thái mặc định.
FaceOverlay
An overlay widget that draws a face frame and applies a vignette effect. Một widget lớp phủ vẽ khung khuôn mặt và áp dụng hiệu ứng mờ viền.
FacePainter
Custom painter to draw the face detection frame and vignette effect. Họa sĩ tùy chỉnh để vẽ khung phát hiện khuôn mặt và hiệu ứng mờ viền.
FaceQuality
Metrics for face quality assessment. Các chỉ số đánh giá chất lượng khuôn mặt.
LivenessCameraWidget
A widget that performs liveness detection using a sequence of challenges. Một widget thực hiện phát hiện tính liveness bằng một chuỗi các thử thách.
LivenessChallengeConfig
Configuration for a single liveness challenge.
LivenessChallengeResult
Result of a single liveness challenge.
LivenessController
Controller to manage the liveness detection flow. Bộ điều khiển để quản lý luồng phát hiện tính liveness.
LivenessProgressInfo
Progress info for custom progress indicator. overallProgress = (completed steps + current step progress) / total, e.g. 33% after 1 of 3.
LivenessResult
Final result of the entire liveness detection flow.
SmartFaceCamera
A smart camera widget that automatically detects faces and captures images. Một widget camera thông minh tự động phát hiện khuôn mặt và chụp ảnh.

Enums

CameraImageFormat
CameraLensDirection
The direction the camera is facing.
FaceCameraError
Error types for face camera operations. Các loại lỗi cho các hoạt động của camera khuôn mặt.
FaceCameraState
States of the face camera. Các trạng thái của camera khuôn mặt.
FlashMode
The possible flash modes that can be set for a camera
LivenessChallenge
Available challenge types for liveness detection.
LivenessChallengeState
State of an individual liveness challenge.
LivenessState
Overall state of the liveness detection process.
ResolutionPreset
Affect the quality of video recording and image capture:

Typedefs

FaceCameraErrorCallback = void Function(FaceCameraError error, String? message)
Callback for handling camera and processing errors. Gọi lại để xử lý các lỗi camera và xử lý.
StatusMessageBuilder = Widget? Function(BuildContext context, FaceCameraState state, bool isFacingForward, int remainingSeconds)
Builder to customize the status message shown during the process. Hàm xây dựng để tùy chỉnh thông báo trạng thái hiển thị trong quá trình.