From 7c846115d7b50ea99671534c048c53c143dfd769 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 27 Oct 2025 09:40:09 +0530 Subject: [PATCH] issue solved in ocr for stop detection --- resources/views/fields/camera-capture.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {