fix(crop): stabiliser le rectangle géométrique de découpe et l'enchaînement des zooms

This commit is contained in:
qguillaume
2026-05-27 15:36:56 +02:00
parent 4d2ca2c94f
commit 730629a031
5 changed files with 269 additions and 174 deletions

View File

@@ -162,8 +162,8 @@ class AnalysisProvider extends ChangeNotifier {
return;
}
// Detect target and impacts
final result = _detectionService.detectTarget(imagePath, targetType);
// CORRECTION PARALLÈLE : Changement de la méthode pour l'Isolate asynchrone
final result = await _detectionService.detectTargetAsync(imagePath, targetType);
if (!result.success) {
_state = AnalysisState.error;