added alert in ocr
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user