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