test opecv échoué
This commit is contained in:
@@ -903,12 +903,16 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
}
|
||||
|
||||
void _showAutoDetectDialog(BuildContext context, AnalysisProvider provider) {
|
||||
// Detection settings
|
||||
bool clearExisting = true;
|
||||
double minCircularity = 0.6;
|
||||
int darkThreshold = 80;
|
||||
int minImpactSize = 20;
|
||||
int maxImpactSize = 500;
|
||||
double minCircularity = 0.6;
|
||||
double minFillRatio = 0.5;
|
||||
bool clearExisting = true;
|
||||
|
||||
// NOTE: OpenCV désactivé - problèmes de build Windows
|
||||
// Utilisation de la détection classique uniquement
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
@@ -1012,6 +1016,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
setState(() => maxImpactSize = value.round());
|
||||
},
|
||||
),
|
||||
|
||||
const SizedBox(height: 12),
|
||||
|
||||
// Clear existing checkbox
|
||||
@@ -1053,7 +1058,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
),
|
||||
);
|
||||
|
||||
// Run detection
|
||||
// Run classic detection
|
||||
final count = await provider.autoDetectImpacts(
|
||||
darkThreshold: darkThreshold,
|
||||
minImpactSize: minImpactSize,
|
||||
@@ -1090,6 +1095,8 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
void _showCalibratedDetectionDialog(BuildContext context, AnalysisProvider provider) {
|
||||
double tolerance = 2.0;
|
||||
bool clearExisting = true;
|
||||
// NOTE: OpenCV désactivé - problèmes de build Windows
|
||||
// Utilisation de la détection classique uniquement
|
||||
|
||||
showDialog(
|
||||
context: context,
|
||||
@@ -1177,7 +1184,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
onPressed: () async {
|
||||
Navigator.pop(context);
|
||||
|
||||
// Learn from references
|
||||
// Show loading
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Row(
|
||||
@@ -1195,6 +1202,7 @@ class _AnalysisScreenContentState extends State<_AnalysisScreenContent> {
|
||||
),
|
||||
);
|
||||
|
||||
// Classic detection: learn then detect
|
||||
final learned = provider.learnFromReferences();
|
||||
|
||||
if (!learned) {
|
||||
|
||||
Reference in New Issue
Block a user