added alert in ocr

This commit is contained in:
dhanabalan
2025-10-25 17:26:05 +05:30
parent 1fb8c43b28
commit 9f4d7e2151

View File

@@ -818,7 +818,10 @@ function cameraCapture() {
// Extract serial numbers (digits only) // Extract serial numbers (digits only)
const matches = detectedText.match(/\d+/g) || []; const matches = detectedText.match(/\d+/g) || [];
this.serialNumbers = matches.slice(0, 4); // take first 4 serials this.serialNumbers = matches.slice(0, 4); // take first 4 serials
this.$refs.serialInput.value = JSON.stringify(this.serialNumbers); this.$refs.serialInput.value = JSON.stringify(this.serialNumbers);
alert("Serial numbers stored in hidden input:\n" + this.$refs.serialInput.value);
} }
} catch (err) { } catch (err) {
console.error("OCR verify error:", err); console.error("OCR verify error:", err);