fixed classifier and added in a preliminary results view that shows what pokemon are currently being looked at.
This commit is contained in:
@@ -1,26 +1,21 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:tensordex_mobile/ui/poke_view.dart';
|
||||
import 'package:tensordex_mobile/utils/recognition.dart';
|
||||
import 'package:tensordex_mobile/tflite/data/recognition.dart';
|
||||
import 'package:tensordex_mobile/tflite/data/stats.dart';
|
||||
|
||||
import '../utils/logger.dart';
|
||||
|
||||
/// [CameraView] sends each frame for inference
|
||||
/// [PokedexView] sends each frame for inference
|
||||
class ResultsView extends StatefulWidget {
|
||||
|
||||
final List<Recognition> recognitions;
|
||||
final Stats stats;
|
||||
/// Constructor
|
||||
const ResultsView({Key? key}) : super(key: key);
|
||||
|
||||
|
||||
void setResults(Recognition results){
|
||||
logger.i("RESULTS IN THE RESULT VIEW");
|
||||
}
|
||||
const ResultsView(this.recognitions, this.stats, {Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
State<ResultsView> createState() => _ResultsViewState();
|
||||
}
|
||||
|
||||
class _ResultsViewState extends State<ResultsView> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
@@ -28,6 +23,6 @@ class _ResultsViewState extends State<ResultsView> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text("data");
|
||||
return Text(widget.recognitions.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user