From 1922b9d7fcb9d95959066eddebfb1afd0d1e9b30 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 25 Oct 2025 08:33:02 +0530 Subject: [PATCH] modified logic in ocr --- resources/views/fields/camera-capture.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 0ac1f2d..60b4cae 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -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() {