You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1013 B
Dart
39 lines
1013 B
Dart
/// The conditions required to start a scan.
|
|
class ScanConditions {
|
|
/// Whether the lighting condtion is fulfilled.
|
|
final bool lighting;
|
|
|
|
/// Whether the condtintion of the face distance is fulfilled.
|
|
final bool distance;
|
|
|
|
/// Whether the face is centered.
|
|
final bool centered;
|
|
|
|
/// Whether the face is staying stilled.
|
|
final bool movement;
|
|
|
|
/// Whetter the frame rate of the camera is fast enough.
|
|
final bool frameRate;
|
|
|
|
/// Wheather the server is ready.
|
|
final bool serverReady;
|
|
|
|
const ScanConditions(
|
|
{required this.lighting,
|
|
required this.distance,
|
|
required this.centered,
|
|
required this.movement,
|
|
required this.frameRate,
|
|
required this.serverReady});
|
|
|
|
factory ScanConditions.fromMap(Map map) {
|
|
return ScanConditions(
|
|
lighting: map['lighting'],
|
|
distance: map['distance'],
|
|
centered: map['centered'],
|
|
movement: map['movement'],
|
|
frameRate: map['frameRate'],
|
|
serverReady: map['serverReady']);
|
|
}
|
|
}
|