scandoc-ai-components 0.0.89 → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11247,13 +11247,13 @@ class ExtractorVideo {
|
|
|
11247
11247
|
if (images.length < ExtractorVideo.VALIDATION_BATCH_SIZE) return;
|
|
11248
11248
|
const [isValidationOk, response] = await (0,_requests_validation__WEBPACK_IMPORTED_MODULE_3__["default"])(images.map(e => e.validationImg), this.pastBlurValues, {});
|
|
11249
11249
|
if (!isValidationOk) {
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11250
|
+
this.candidateImages = [];
|
|
11251
|
+
return;
|
|
11252
|
+
}
|
|
11253
|
+
if (response?.InfoCode === "1006" && response?.TransactionID) {
|
|
11254
|
+
const frontImage = this.candidateImages[this.candidateImages.length - 1].fullImg;
|
|
11255
|
+
await (0,_requests_error_logging__WEBPACK_IMPORTED_MODULE_4__["default"])(frontImage, "", response.TransactionID);
|
|
11256
|
+
this.showMessage("Unsupported document. Logged issue.", true);
|
|
11257
11257
|
this.candidateImages = [];
|
|
11258
11258
|
return;
|
|
11259
11259
|
}
|