fixed classifier and added in a preliminary results view that shows what pokemon are currently being looked at.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import 'dart:ui';
|
||||
|
||||
class CameraViewSingleton {
|
||||
static double ratio = 0.0;
|
||||
static Size screenSize = const Size(0, 0);
|
||||
static Size inputImageSize = const Size(0, 0);
|
||||
|
||||
static Size get actualPreviewSize =>
|
||||
Size(screenSize.width, screenSize.width * ratio);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
/// 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)';
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
/// Bundles different elapsed times
|
||||
class Stats {
|
||||
/// Total time taken in the isolate where the inference runs
|
||||
int totalPredictTime;
|
||||
|
||||
/// [totalPredictTime] + communication overhead time
|
||||
/// between main isolate and another isolate
|
||||
int totalElapsedTime;
|
||||
|
||||
/// Time for which inference runs
|
||||
int inferenceTime;
|
||||
|
||||
/// Time taken to pre-process the image
|
||||
int preProcessingTime;
|
||||
|
||||
Stats(this.totalPredictTime, this.totalElapsedTime, this.inferenceTime,
|
||||
this.preProcessingTime);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'Stats{totalPredictTime: $totalPredictTime, totalElapsedTime: $totalElapsedTime, inferenceTime: $inferenceTime, preProcessingTime: $preProcessingTime}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user