refactoring code to use proper views in the UI and turned the camera instance into its own view with callbacks.

Also added in the model for initial use, and working to create the inferences off of TFLite using that view.
This commit is contained in:
Lucas Oskorep
2022-06-21 19:13:48 -04:00
parent 5e5a3f535f
commit 3dc77799a5
14 changed files with 1455 additions and 244 deletions
+21
View File
@@ -0,0 +1,21 @@
/// Represents the recognition output from the model
class Recognition {
/// Index of the result
final int _id;
/// Label of the result
final String _label;
/// Confidence [0.0, 1.0]
final double _score;
Recognition(this._id, this._label, this._score);
int get id => _id;
String get label => _label;
double get score => _score;
@override
String toString() {
return 'Recognition(id: $id, label: $label, score: $score)';
}
}