From 6f624b4514ebc099f58ff1f04a504387ef850c6a Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 14 Nov 2025 10:27:52 +0530 Subject: [PATCH] Added verify method and optimized method in ocr --- resources/views/fields/camera-capture.blade.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/resources/views/fields/camera-capture.blade.php b/resources/views/fields/camera-capture.blade.php index 1fb8907..5dce3c5 100644 --- a/resources/views/fields/camera-capture.blade.php +++ b/resources/views/fields/camera-capture.blade.php @@ -1286,13 +1286,11 @@ function cameraCapture() { console.log("Session update result:", data); alert("✅ Serial numbers saved:\n" + JSON.stringify(this.serialNumbers, null, 2)); }; - - } catch (err) { - console.error("OCR verify error:", err); - alert("OCR verify failed:\n" + (err.message || err)); - } - } - + } catch (err) { + console.error("OCR verify error:", err); + alert("OCR verify failed:\n" + (err.message || err)); + } + }, startDetection() { if (this.textDetectionInterval) {