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