issue solved in ocr for stop detection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user