26 lines
715 B
Dart
26 lines
715 B
Dart
class QualityStatus {
|
|
final double blurScore;
|
|
final double brightness;
|
|
final bool isCentered;
|
|
final bool canCapture; // Overall pass for this frame
|
|
|
|
// Individual pass flags for UI
|
|
final bool isFocusGood;
|
|
final bool isLightingGood;
|
|
final bool isPositionGood;
|
|
|
|
const QualityStatus({
|
|
required this.blurScore,
|
|
required this.brightness,
|
|
required this.isCentered,
|
|
required this.canCapture,
|
|
this.isFocusGood = false,
|
|
this.isLightingGood = false,
|
|
this.isPositionGood = false,
|
|
});
|
|
|
|
@override
|
|
String toString() {
|
|
return 'QualityStatus(blur: ${blurScore.toStringAsFixed(2)}, bright: ${brightness.toStringAsFixed(2)}, center: $isCentered, capture: $canCapture)';
|
|
}
|
|
} |