scandoc-ai-components 0.0.37 → 0.0.39
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 +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11215,6 +11215,7 @@ class ExtractorVideo {
|
|
|
11215
11215
|
DOCUMENT_DETECTOR.isDocumentPresent(video).then(async isPresent => {
|
|
11216
11216
|
if (isPresent) {
|
|
11217
11217
|
if (!this.documentDetectionStartTime) {
|
|
11218
|
+
console.log('here');
|
|
11218
11219
|
this.documentDetectionStartTime = Date.now();
|
|
11219
11220
|
}
|
|
11220
11221
|
this.candidateImages.push({
|
|
@@ -11223,6 +11224,7 @@ class ExtractorVideo {
|
|
|
11223
11224
|
});
|
|
11224
11225
|
const images = [...this.candidateImages];
|
|
11225
11226
|
const timeSinceFirstDetection = Date.now() - this.documentDetectionStartTime;
|
|
11227
|
+
console.log(timeSinceFirstDetection);
|
|
11226
11228
|
if (timeSinceFirstDetection > cfgValues.VALIDATION_TIMEOUT_MS) {
|
|
11227
11229
|
this.showMessage("Validation failed: timeout after 5 seconds.");
|
|
11228
11230
|
this.documentDetectionStartTime = null;
|