ente/lib/services/object_detection/models/recognition.dart

19 lines
352 B
Dart
Raw Normal View History

2023-02-08 13:36:40 +00:00
/// Represents the recognition output from the model
class Recognition {
/// Index of the result
int id;
/// Label of the result
String label;
/// Confidence [0.0, 1.0]
double score;
Recognition(this.id, this.label, this.score);
@override
String toString() {
return 'Recognition(id: $id, label: $label, score: $score)';
}
}