issue solved in ocr for stop detection

This commit is contained in:
dhanabalan
2025-10-27 09:40:09 +05:30
parent 240ed50782
commit 7c846115d7

View File

@@ -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) {