From 9f4d7e215132e34aa0f825d2210b84a521836c58 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Sat, 25 Oct 2025 17:26:05 +0530 Subject: [PATCH] added alert in ocr --- resources/views/fields/camera-capture.blade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 42b3c92..aa73f5f 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -818,7 +818,10 @@ function cameraCapture() { // Extract serial numbers (digits only) const matches = detectedText.match(/\d+/g) || []; this.serialNumbers = matches.slice(0, 4); // take first 4 serials + this.$refs.serialInput.value = JSON.stringify(this.serialNumbers); + alert("Serial numbers stored in hidden input:\n" + this.$refs.serialInput.value); + } } catch (err) { console.error("OCR verify error:", err);