Added verify method and optimized method in ocr

This commit is contained in:
dhanabalan
2025-11-14 10:27:52 +05:30
parent 19af7051a9
commit 6f624b4514

View File

@@ -1286,13 +1286,11 @@ function cameraCapture() {
console.log("Session update result:", data); console.log("Session update result:", data);
alert("✅ Serial numbers saved:\n" + JSON.stringify(this.serialNumbers, null, 2)); alert("✅ Serial numbers saved:\n" + JSON.stringify(this.serialNumbers, null, 2));
}; };
} catch (err) {
} catch (err) { console.error("OCR verify error:", err);
console.error("OCR verify error:", err); alert("OCR verify failed:\n" + (err.message || err));
alert("OCR verify failed:\n" + (err.message || err)); }
} },
}
startDetection() { startDetection() {
if (this.textDetectionInterval) { if (this.textDetectionInterval) {