modified logic in ocr
This commit is contained in:
@@ -492,7 +492,7 @@ function cameraCapture() {
|
|||||||
this.$refs.video.classList.remove('hidden');
|
this.$refs.video.classList.remove('hidden');
|
||||||
this.cropper?.destroy();
|
this.cropper?.destroy();
|
||||||
await this.initCamera();
|
await this.initCamera();
|
||||||
}
|
},
|
||||||
|
|
||||||
async detectText() {
|
async detectText() {
|
||||||
// Draw video frame to temporary canvas
|
// Draw video frame to temporary canvas
|
||||||
@@ -522,7 +522,7 @@ function cameraCapture() {
|
|||||||
// ctx.fillText(word.text, x0, y0 - 2);
|
// ctx.fillText(word.text, x0, y0 - 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
},
|
||||||
|
|
||||||
// Periodically detect text
|
// Periodically detect text
|
||||||
async startDetection() {
|
async startDetection() {
|
||||||
|
|||||||
Reference in New Issue
Block a user