From 8164aaed048a6d7c79b6474c94b16fb97581800e Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 24 Oct 2025 11:17:17 +0530 Subject: [PATCH] increased quality for jpeg image in ocr --- resources/views/fields/camera-capture.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 24c985a..874186f 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -280,7 +280,7 @@ document.addEventListener('DOMContentLoaded', () => {
Capture - Retake + Retake Switch Camera Verify
@@ -355,7 +355,7 @@ function cameraCapture() { } else { alert('Failed to save image.'); } - }, 'image/jpeg'); + }, 'image/jpeg', 1.0); // 1.0 = highest quality this.photoTaken = true; @@ -415,6 +415,7 @@ function cameraCapture() { if (data.success) { const serials = Array.isArray(data.text) ? data.text.join("\n") : data.text; alert("OCR Result:\n" + serials); + @this.set('ocrSerials', data.text); console.log(serials); } else {