chnages has been made for the interactive face camera
This commit is contained in:
28
lib/presentation/face/face_feedback.dart
Normal file
28
lib/presentation/face/face_feedback.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
enum FaceHintType {
|
||||
noFace,
|
||||
tooDark,
|
||||
tooClose,
|
||||
tooFar,
|
||||
notCentered,
|
||||
lookStraight,
|
||||
holdStill,
|
||||
good,
|
||||
}
|
||||
|
||||
class FaceFeedback {
|
||||
final FaceHintType type;
|
||||
final String message;
|
||||
final double quality; // 0..1 (used for progress ring)
|
||||
final Color borderColor;
|
||||
|
||||
FaceFeedback({
|
||||
required this.type,
|
||||
required this.message,
|
||||
required this.quality,
|
||||
required this.borderColor,
|
||||
});
|
||||
|
||||
bool get isGood => type == FaceHintType.good;
|
||||
}
|
||||
Reference in New Issue
Block a user