issue solved in ocr for stop detection
This commit is contained in:
@@ -797,6 +797,7 @@ function cameraCapture() {
|
|||||||
this.capturedPhoto = snapshotData; // store for verification
|
this.capturedPhoto = snapshotData; // store for verification
|
||||||
|
|
||||||
alert("Photo captured!");
|
alert("Photo captured!");
|
||||||
|
this.stopDetection();
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -871,7 +872,7 @@ function cameraCapture() {
|
|||||||
startDetection() {
|
startDetection() {
|
||||||
if (this.textDetectionInterval) clearInterval(this.textDetectionInterval);
|
if (this.textDetectionInterval) clearInterval(this.textDetectionInterval);
|
||||||
this.textDetectionInterval = setInterval(() => this.detectText(), 1000);
|
this.textDetectionInterval = setInterval(() => this.detectText(), 1000);
|
||||||
}
|
},
|
||||||
|
|
||||||
stopDetection() {
|
stopDetection() {
|
||||||
if (this.textDetectionInterval) {
|
if (this.textDetectionInterval) {
|
||||||
|
|||||||
Reference in New Issue
Block a user