scandoc-ai-components 0.0.94 → 0.0.95
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 +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11279,7 +11279,6 @@ class ExtractorVideo {
|
|
|
11279
11279
|
return;
|
|
11280
11280
|
}
|
|
11281
11281
|
this.extractionImages[imageSide] = images[imageId].fullImg;
|
|
11282
|
-
console.log(this.extractionImages);
|
|
11283
11282
|
if (Object.keys(this.extractionImages).length === 1) {
|
|
11284
11283
|
this.waitingForSecondSide = true;
|
|
11285
11284
|
this.hasShownTurnMessage = true;
|
|
@@ -11966,6 +11965,11 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
|
|
|
11966
11965
|
FaceImageResize: cfgValues.FACE_IMAGE_RESIZE
|
|
11967
11966
|
};
|
|
11968
11967
|
const currentSettings = (0,_utility_utils__WEBPACK_IMPORTED_MODULE_1__.removeNullFields)(settings);
|
|
11968
|
+
console.log("Starting document extraction...");
|
|
11969
|
+
console.log("Ignore back image:", ignoreBackImage);
|
|
11970
|
+
console.log("Front image (first 100 chars):", frontImage?.substring(0, 100));
|
|
11971
|
+
console.log("Back image (first 100 chars):", backImage?.substring(0, 100));
|
|
11972
|
+
console.log("Sending settings:", currentSettings);
|
|
11969
11973
|
const response = await fetch(`${cfgValues.SCAN_APP_URL}extraction/`, {
|
|
11970
11974
|
method: "POST",
|
|
11971
11975
|
headers: {
|
|
@@ -11992,6 +11996,7 @@ async function callDocumentExtraction(frontImage, backImage, ignoreBackImage) {
|
|
|
11992
11996
|
//
|
|
11993
11997
|
if (response.status === 200) {
|
|
11994
11998
|
const data = await response.json();
|
|
11999
|
+
console.log(data);
|
|
11995
12000
|
return [true, data];
|
|
11996
12001
|
}
|
|
11997
12002
|
//
|