diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 714e729..edf4269 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -797,6 +797,7 @@ function cameraCapture() { this.capturedPhoto = snapshotData; // store for verification alert("Photo captured!"); + this.stopDetection(); }, @@ -871,7 +872,7 @@ function cameraCapture() { startDetection() { if (this.textDetectionInterval) clearInterval(this.textDetectionInterval); this.textDetectionInterval = setInterval(() => this.detectText(), 1000); - } + }, stopDetection() { if (this.textDetectionInterval) {