idmission-web-sdk 2.3.230 → 2.3.231

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.
@@ -0,0 +1,3 @@
1
+ export declare const defaultDocumentDetectorLiteRTModelPath = "https://websdk-cdn-dev.idmission.com/assets/models/DocumentDetectorLiteRT/DocumentDetectorLiteRT-20260512_104429.tflite";
2
+ export declare const defaultDocumentDetectorLiteRTModelHash = "RR2B3SOdFIMx+Dh41zElQW79ZYyHCZo7+F0pTKd8eVcj2g2Kzq9OlwEOSBpBMcM5";
3
+ //# sourceMappingURL=DocumentDetectorLiteRT.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DocumentDetectorLiteRT.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/defaults/DocumentDetectorLiteRT.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sCAAsC,4HAAmG,CAAA;AACtJ,eAAO,MAAM,sCAAsC,qEACiB,CAAA"}
@@ -0,0 +1,33 @@
1
+ export declare const DOC_DETECT_INPUT_SIZE = 300;
2
+ export declare const DOC_DETECT_LABEL_MAP: Record<number, string>;
3
+ export declare const DEFAULT_SCALE_FACTORS: readonly [number, number, number, number];
4
+ export declare const DEFAULT_BOX_ENCODINGS_QUANT: QuantParams;
5
+ export declare const DEFAULT_CLASS_PREDICTIONS_QUANT: QuantParams;
6
+ export type DocDetection = {
7
+ classId: number;
8
+ label: string;
9
+ score: number;
10
+ xMin: number;
11
+ yMin: number;
12
+ xMax: number;
13
+ yMax: number;
14
+ };
15
+ export declare function preprocessFrame(source: HTMLVideoElement | HTMLCanvasElement): Uint8Array;
16
+ export type QuantParams = {
17
+ scale: number;
18
+ zeroPoint: number;
19
+ };
20
+ export type RawOutputs = {
21
+ boxEncodings: Uint8Array;
22
+ classPredictions: Uint8Array;
23
+ anchors: Float32Array;
24
+ };
25
+ export type RawDecodeOptions = {
26
+ scoreThreshold?: number;
27
+ iouThreshold?: number;
28
+ classPredictionsQuant: QuantParams;
29
+ boxEncodingsQuant: QuantParams;
30
+ scaleFactors?: readonly [number, number, number, number];
31
+ };
32
+ export declare function decodeRawDetections(outputs: RawOutputs, options: RawDecodeOptions): DocDetection[];
33
+ //# sourceMappingURL=docDetectPrePost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"docDetectPrePost.d.ts","sourceRoot":"","sources":["../../../../../src/lib/models/providers/litert/docDetectPrePost.ts"],"names":[],"mappings":"AA8BA,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAQzC,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAsBvD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CACpD,CAAC;AAIzB,eAAO,MAAM,2BAA2B,EAAE,WAGzC,CAAC;AACF,eAAO,MAAM,+BAA+B,EAAE,WAG7C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAmBF,wBAAgB,eAAe,CAC7B,MAAM,EAAE,gBAAgB,GAAG,iBAAiB,GAC3C,UAAU,CAgBZ;AAED,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,EAAE,UAAU,CAAC;IACzB,gBAAgB,EAAE,UAAU,CAAC;IAC7B,OAAO,EAAE,YAAY,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,EAAE,WAAW,CAAC;IACnC,iBAAiB,EAAE,WAAW,CAAC;IAC/B,YAAY,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1D,CAAC;AAgCF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,UAAU,EACnB,OAAO,EAAE,gBAAgB,GACxB,YAAY,EAAE,CAgGhB"}
@@ -236,7 +236,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
236
236
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
237
237
  };
238
238
 
239
- var webSdkVersion = '2.3.230';
239
+ var webSdkVersion = '2.3.231';
240
240
 
241
241
  function getPlatform() {
242
242
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment