@mikashboks/capture-intelligence-core 0.1.0
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/cjs/__fixtures__/address-flow.fixtures.d.ts +35 -0
- package/dist/cjs/__fixtures__/address-flow.fixtures.d.ts.map +1 -0
- package/dist/cjs/__fixtures__/address-flow.fixtures.js +186 -0
- package/dist/cjs/__fixtures__/address-flow.fixtures.js.map +1 -0
- package/dist/cjs/__fixtures__/metadata-review.fixtures.d.ts +11 -0
- package/dist/cjs/__fixtures__/metadata-review.fixtures.d.ts.map +1 -0
- package/dist/cjs/__fixtures__/metadata-review.fixtures.js +69 -0
- package/dist/cjs/__fixtures__/metadata-review.fixtures.js.map +1 -0
- package/dist/cjs/address-proof.d.ts +33 -0
- package/dist/cjs/address-proof.d.ts.map +1 -0
- package/dist/cjs/address-proof.js +97 -0
- package/dist/cjs/address-proof.js.map +1 -0
- package/dist/cjs/document-classifier.d.ts +19 -0
- package/dist/cjs/document-classifier.d.ts.map +1 -0
- package/dist/cjs/document-classifier.js +213 -0
- package/dist/cjs/document-classifier.js.map +1 -0
- package/dist/cjs/flow-routing.d.ts +7 -0
- package/dist/cjs/flow-routing.d.ts.map +1 -0
- package/dist/cjs/flow-routing.js +45 -0
- package/dist/cjs/flow-routing.js.map +1 -0
- package/dist/cjs/index.d.ts +25 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +83 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/metadata-review.d.ts +10 -0
- package/dist/cjs/metadata-review.d.ts.map +1 -0
- package/dist/cjs/metadata-review.js +93 -0
- package/dist/cjs/metadata-review.js.map +1 -0
- package/dist/cjs/metrics.d.ts +115 -0
- package/dist/cjs/metrics.d.ts.map +1 -0
- package/dist/cjs/metrics.js +302 -0
- package/dist/cjs/metrics.js.map +1 -0
- package/dist/cjs/quality-checks.d.ts +170 -0
- package/dist/cjs/quality-checks.d.ts.map +1 -0
- package/dist/cjs/quality-checks.js +417 -0
- package/dist/cjs/quality-checks.js.map +1 -0
- package/dist/cjs/sobel.d.ts +61 -0
- package/dist/cjs/sobel.d.ts.map +1 -0
- package/dist/cjs/sobel.js +179 -0
- package/dist/cjs/sobel.js.map +1 -0
- package/dist/cjs/types.d.ts +98 -0
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +38 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/esm/__fixtures__/address-flow.fixtures.d.ts +35 -0
- package/dist/esm/__fixtures__/address-flow.fixtures.d.ts.map +1 -0
- package/dist/esm/__fixtures__/address-flow.fixtures.js +183 -0
- package/dist/esm/__fixtures__/address-flow.fixtures.js.map +1 -0
- package/dist/esm/__fixtures__/metadata-review.fixtures.d.ts +11 -0
- package/dist/esm/__fixtures__/metadata-review.fixtures.d.ts.map +1 -0
- package/dist/esm/__fixtures__/metadata-review.fixtures.js +66 -0
- package/dist/esm/__fixtures__/metadata-review.fixtures.js.map +1 -0
- package/dist/esm/address-proof.d.ts +33 -0
- package/dist/esm/address-proof.d.ts.map +1 -0
- package/dist/esm/address-proof.js +86 -0
- package/dist/esm/address-proof.js.map +1 -0
- package/dist/esm/document-classifier.d.ts +19 -0
- package/dist/esm/document-classifier.d.ts.map +1 -0
- package/dist/esm/document-classifier.js +209 -0
- package/dist/esm/document-classifier.js.map +1 -0
- package/dist/esm/flow-routing.d.ts +7 -0
- package/dist/esm/flow-routing.d.ts.map +1 -0
- package/dist/esm/flow-routing.js +41 -0
- package/dist/esm/flow-routing.js.map +1 -0
- package/dist/esm/index.d.ts +25 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +19 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/metadata-review.d.ts +10 -0
- package/dist/esm/metadata-review.d.ts.map +1 -0
- package/dist/esm/metadata-review.js +90 -0
- package/dist/esm/metadata-review.js.map +1 -0
- package/dist/esm/metrics.d.ts +115 -0
- package/dist/esm/metrics.d.ts.map +1 -0
- package/dist/esm/metrics.js +291 -0
- package/dist/esm/metrics.js.map +1 -0
- package/dist/esm/quality-checks.d.ts +170 -0
- package/dist/esm/quality-checks.d.ts.map +1 -0
- package/dist/esm/quality-checks.js +400 -0
- package/dist/esm/quality-checks.js.map +1 -0
- package/dist/esm/sobel.d.ts +61 -0
- package/dist/esm/sobel.d.ts.map +1 -0
- package/dist/esm/sobel.js +173 -0
- package/dist/esm/sobel.js.map +1 -0
- package/dist/esm/types.d.ts +98 -0
- package/dist/esm/types.d.ts.map +1 -0
- package/dist/esm/types.js +35 -0
- package/dist/esm/types.js.map +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capture Intelligence Core — shared types, constants, and thresholds.
|
|
3
|
+
*
|
|
4
|
+
* All types are DOM-free. No HTMLElement, HTMLCanvasElement, HTMLVideoElement,
|
|
5
|
+
* HTMLImageElement, or any browser API references.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CamState: {
|
|
8
|
+
readonly SEARCHING: 0;
|
|
9
|
+
readonly DETECTED: 1;
|
|
10
|
+
readonly STABILIZING: 2;
|
|
11
|
+
readonly CAPTURING: 3;
|
|
12
|
+
readonly DONE: 4;
|
|
13
|
+
};
|
|
14
|
+
export type CamStateValue = (typeof CamState)[keyof typeof CamState];
|
|
15
|
+
export interface FrameMetrics {
|
|
16
|
+
brightness: number;
|
|
17
|
+
blurScore: number;
|
|
18
|
+
edgeEnergy: number;
|
|
19
|
+
frameDiff: number;
|
|
20
|
+
docAreaRatio: number;
|
|
21
|
+
docAspectRatio: number;
|
|
22
|
+
docCenterOffset: number;
|
|
23
|
+
edgeCoverage: number;
|
|
24
|
+
}
|
|
25
|
+
export interface DocumentReviewProfile {
|
|
26
|
+
aspectTargets: number[];
|
|
27
|
+
threshold: number;
|
|
28
|
+
expectedOrientation?: 'portrait' | 'landscape' | 'square' | 'either';
|
|
29
|
+
}
|
|
30
|
+
export interface DocumentLikelihoodResult {
|
|
31
|
+
isLikelyDoc: boolean;
|
|
32
|
+
confidence: number;
|
|
33
|
+
glareDetected: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface CropRect {
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
w: number;
|
|
39
|
+
h: number;
|
|
40
|
+
}
|
|
41
|
+
export interface DocumentCropResult {
|
|
42
|
+
crop: CropRect | null;
|
|
43
|
+
cornersOk: boolean | null;
|
|
44
|
+
}
|
|
45
|
+
export interface OverlayRegion {
|
|
46
|
+
x1: number;
|
|
47
|
+
y1: number;
|
|
48
|
+
x2: number;
|
|
49
|
+
y2: number;
|
|
50
|
+
}
|
|
51
|
+
export type OverlayVariant = 'card' | 'passport' | 'a4';
|
|
52
|
+
export type QualityCheckResults = Record<string, boolean>;
|
|
53
|
+
export interface FaceBoundingBox {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
}
|
|
59
|
+
export interface DetectedFace {
|
|
60
|
+
boundingBox: FaceBoundingBox;
|
|
61
|
+
}
|
|
62
|
+
export type ReviewOrientation = 'portrait' | 'landscape' | 'square';
|
|
63
|
+
export interface MetadataReviewIssue {
|
|
64
|
+
key: string;
|
|
65
|
+
message: string;
|
|
66
|
+
severity: 'error' | 'warning';
|
|
67
|
+
}
|
|
68
|
+
export interface MetadataReviewResult {
|
|
69
|
+
passed: boolean;
|
|
70
|
+
issues: MetadataReviewIssue[];
|
|
71
|
+
orientation: ReviewOrientation;
|
|
72
|
+
isDocument: boolean;
|
|
73
|
+
}
|
|
74
|
+
export type ReviewMode = 'document' | 'address-document' | 'front-door' | 'selfie';
|
|
75
|
+
export type QualityBucket = 'document_front' | 'document_back' | 'selfie' | 'address_document' | 'address_front_door';
|
|
76
|
+
export interface ReviewDecisionOptions {
|
|
77
|
+
reviewMode: ReviewMode;
|
|
78
|
+
pendingMessage?: string;
|
|
79
|
+
failMessage?: string;
|
|
80
|
+
}
|
|
81
|
+
export declare const CAM_ANALYSIS_W = 160;
|
|
82
|
+
export declare const CAM_ANALYSIS_H = 120;
|
|
83
|
+
export declare const CAM_BRIGHTNESS_MIN = 28;
|
|
84
|
+
export declare const CAM_BRIGHTNESS_MAX = 248;
|
|
85
|
+
export declare const CAM_BLUR_THRESHOLD = 30;
|
|
86
|
+
export declare const CAM_EDGE_THRESHOLD = 7;
|
|
87
|
+
export declare const CAM_STABLE_FRAMES_NEEDED = 5;
|
|
88
|
+
export declare const CAM_FRAME_DIFF_THRESHOLD = 15;
|
|
89
|
+
export declare const CAM_EDGE_PIXEL_THRESHOLD = 60;
|
|
90
|
+
export declare const CAM_EDGE_COVERAGE_THRESHOLD = 0.02;
|
|
91
|
+
export declare const CAM_DOC_CENTER_OFFSET_MAX = 0.25;
|
|
92
|
+
export declare const DOC_GALLERY_FAILURE_THRESHOLD = 1;
|
|
93
|
+
export declare const DOC_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
94
|
+
export declare const SELFIE_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
95
|
+
export declare const ADDRESS_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
96
|
+
export declare const PICO_ANALYSIS_W = 240;
|
|
97
|
+
export declare const PICO_ANALYSIS_H = 180;
|
|
98
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC;AAIrE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,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,CAAC;AAIzD,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Capture Intelligence Core — shared types, constants, and thresholds.
|
|
3
|
+
*
|
|
4
|
+
* All types are DOM-free. No HTMLElement, HTMLCanvasElement, HTMLVideoElement,
|
|
5
|
+
* HTMLImageElement, or any browser API references.
|
|
6
|
+
*/
|
|
7
|
+
/* -- Auto-capture state machine ------------------------------------------- */
|
|
8
|
+
export const CamState = {
|
|
9
|
+
SEARCHING: 0,
|
|
10
|
+
DETECTED: 1,
|
|
11
|
+
STABILIZING: 2,
|
|
12
|
+
CAPTURING: 3,
|
|
13
|
+
DONE: 4,
|
|
14
|
+
};
|
|
15
|
+
/* -- Analysis canvas thresholds ------------------------------------------- */
|
|
16
|
+
export const CAM_ANALYSIS_W = 160;
|
|
17
|
+
export const CAM_ANALYSIS_H = 120;
|
|
18
|
+
export const CAM_BRIGHTNESS_MIN = 28;
|
|
19
|
+
export const CAM_BRIGHTNESS_MAX = 248;
|
|
20
|
+
export const CAM_BLUR_THRESHOLD = 30;
|
|
21
|
+
export const CAM_EDGE_THRESHOLD = 7;
|
|
22
|
+
export const CAM_STABLE_FRAMES_NEEDED = 5; // ~0.33s at 15fps
|
|
23
|
+
export const CAM_FRAME_DIFF_THRESHOLD = 15;
|
|
24
|
+
export const CAM_EDGE_PIXEL_THRESHOLD = 60;
|
|
25
|
+
export const CAM_EDGE_COVERAGE_THRESHOLD = 0.02;
|
|
26
|
+
export const CAM_DOC_CENTER_OFFSET_MAX = 0.25;
|
|
27
|
+
/* -- Retry escalation thresholds ------------------------------------------ */
|
|
28
|
+
export const DOC_GALLERY_FAILURE_THRESHOLD = 1;
|
|
29
|
+
export const DOC_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
30
|
+
export const SELFIE_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
31
|
+
export const ADDRESS_SUBMIT_ANYWAY_FAILURE_THRESHOLD = 2;
|
|
32
|
+
/* -- Pico.js analysis dimensions ------------------------------------------ */
|
|
33
|
+
export const PICO_ANALYSIS_W = 240;
|
|
34
|
+
export const PICO_ANALYSIS_H = 180;
|
|
35
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+EAA+E;AAE/E,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,SAAS,EAAE,CAAC;IACZ,QAAQ,EAAE,CAAC;IACX,WAAW,EAAE,CAAC;IACd,SAAS,EAAE,CAAC;IACZ,IAAI,EAAE,CAAC;CACC,CAAC;AA+GX,+EAA+E;AAE/E,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAC;AAClC,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAC;AACtC,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AACrC,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC;AACpC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,CAAC,kBAAkB;AAC7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,wBAAwB,GAAG,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAChD,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,CAAC;AAE9C,+EAA+E;AAE/E,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC;AAEzD,+EAA+E;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AACnC,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mikashboks/capture-intelligence-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "DOM-free algorithmic core for capture intelligence: document classification, edge detection, frame metrics, and quality checks",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"types": "./dist/esm/index.d.ts",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/mikashboks/ballerine.git",
|
|
12
|
+
"directory": "packages/capture-intelligence-core"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/esm/index.d.ts",
|
|
18
|
+
"default": "./dist/esm/index.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/cjs/index.d.ts",
|
|
22
|
+
"default": "./dist/cjs/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"./__fixtures__/address-flow.fixtures": {
|
|
26
|
+
"import": {
|
|
27
|
+
"types": "./dist/esm/__fixtures__/address-flow.fixtures.d.ts",
|
|
28
|
+
"default": "./dist/esm/__fixtures__/address-flow.fixtures.js"
|
|
29
|
+
},
|
|
30
|
+
"require": {
|
|
31
|
+
"types": "./dist/cjs/__fixtures__/address-flow.fixtures.d.ts",
|
|
32
|
+
"default": "./dist/cjs/__fixtures__/address-flow.fixtures.js"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"files": [
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "npm run build:esm && npm run build:cjs",
|
|
41
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
42
|
+
"build:cjs": "tsc --project tsconfig.cjs.json",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"clean": "rm -rf dist",
|
|
45
|
+
"prepack": "npm run clean && npm run typecheck && npm run build",
|
|
46
|
+
"publish:npm": "npm publish --registry=https://registry.npmjs.org --access public",
|
|
47
|
+
"publish:github": "npm publish --registry=https://npm.pkg.github.com"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"ballerine",
|
|
51
|
+
"capture-intelligence",
|
|
52
|
+
"document-classification",
|
|
53
|
+
"edge-detection",
|
|
54
|
+
"quality-check",
|
|
55
|
+
"sobel",
|
|
56
|
+
"kyc"
|
|
57
|
+
],
|
|
58
|
+
"license": "Apache-2.0",
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"devDependencies": {
|
|
63
|
+
"typescript": "^5.5.4"
|
|
64
|
+
}
|
|
65
|
+
}
|