Added verify method and optimized method in ocr
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user