@masumdev/rn-camera-ai-mlkit 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +250 -2
- package/lib/commonjs/detector/MLKitTextRecognizer.js +387 -0
- package/lib/commonjs/detector/MLKitTextRecognizer.js.map +1 -0
- package/lib/commonjs/detector/index.js +17 -0
- package/lib/commonjs/detector/index.js.map +1 -0
- package/lib/commonjs/index.js +39 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/parser/documentFraming.js +279 -0
- package/lib/commonjs/parser/documentFraming.js.map +1 -0
- package/lib/commonjs/parser/index.js +28 -0
- package/lib/commonjs/parser/index.js.map +1 -0
- package/lib/commonjs/parser/mlkitTextParser.js +287 -0
- package/lib/commonjs/parser/mlkitTextParser.js.map +1 -0
- package/lib/commonjs/types/index.js +17 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/mlkit.js +6 -0
- package/lib/commonjs/types/mlkit.js.map +1 -0
- package/lib/module/detector/MLKitTextRecognizer.js +380 -0
- package/lib/module/detector/MLKitTextRecognizer.js.map +1 -0
- package/lib/module/detector/index.js +4 -0
- package/lib/module/detector/index.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/parser/documentFraming.js +272 -0
- package/lib/module/parser/documentFraming.js.map +1 -0
- package/lib/module/parser/index.js +5 -0
- package/lib/module/parser/index.js.map +1 -0
- package/lib/module/parser/mlkitTextParser.js +281 -0
- package/lib/module/parser/mlkitTextParser.js.map +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/mlkit.js +4 -0
- package/lib/module/types/mlkit.js.map +1 -0
- package/lib/typescript/commonjs/detector/MLKitTextRecognizer.d.ts +59 -0
- package/lib/typescript/commonjs/detector/MLKitTextRecognizer.d.ts.map +1 -0
- package/lib/typescript/commonjs/detector/index.d.ts +2 -0
- package/lib/typescript/commonjs/detector/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +4 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/parser/documentFraming.d.ts +66 -0
- package/lib/typescript/commonjs/parser/documentFraming.d.ts.map +1 -0
- package/lib/typescript/commonjs/parser/index.d.ts +3 -0
- package/lib/typescript/commonjs/parser/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/parser/mlkitTextParser.d.ts +18 -0
- package/lib/typescript/commonjs/parser/mlkitTextParser.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/index.d.ts +2 -0
- package/lib/typescript/commonjs/types/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/types/mlkit.d.ts +241 -0
- package/lib/typescript/commonjs/types/mlkit.d.ts.map +1 -0
- package/lib/typescript/module/detector/MLKitTextRecognizer.d.ts +59 -0
- package/lib/typescript/module/detector/MLKitTextRecognizer.d.ts.map +1 -0
- package/lib/typescript/module/detector/index.d.ts +2 -0
- package/lib/typescript/module/detector/index.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +4 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/parser/documentFraming.d.ts +66 -0
- package/lib/typescript/module/parser/documentFraming.d.ts.map +1 -0
- package/lib/typescript/module/parser/index.d.ts +3 -0
- package/lib/typescript/module/parser/index.d.ts.map +1 -0
- package/lib/typescript/module/parser/mlkitTextParser.d.ts +18 -0
- package/lib/typescript/module/parser/mlkitTextParser.d.ts.map +1 -0
- package/lib/typescript/module/types/index.d.ts +2 -0
- package/lib/typescript/module/types/index.d.ts.map +1 -0
- package/lib/typescript/module/types/mlkit.d.ts +241 -0
- package/lib/typescript/module/types/mlkit.d.ts.map +1 -0
- package/package.json +110 -4
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.classifyOcrEntity = classifyOcrEntity;
|
|
7
|
+
exports.extractStructuredOcrData = extractStructuredOcrData;
|
|
8
|
+
exports.parseMLKitTextResult = parseMLKitTextResult;
|
|
9
|
+
var _rnCameraAi = require("@masumdev/rn-camera-ai");
|
|
10
|
+
function isDigitCharCode(code) {
|
|
11
|
+
'worklet';
|
|
12
|
+
|
|
13
|
+
return code >= 48 && code <= 57;
|
|
14
|
+
}
|
|
15
|
+
function isAlphaNumOrDashDot(code) {
|
|
16
|
+
'worklet';
|
|
17
|
+
|
|
18
|
+
return code >= 48 && code <= 57 || code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 45 || code === 46 || code === 95 || code === 43;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Classifies a recognized OCR text snippet into semantic categories inside worklets
|
|
23
|
+
* without depending on heavy regex allocations or non-serializable globals.
|
|
24
|
+
*/
|
|
25
|
+
function classifyOcrEntity(rawText) {
|
|
26
|
+
'worklet';
|
|
27
|
+
|
|
28
|
+
const text = rawText.trim();
|
|
29
|
+
if (text.length === 0) {
|
|
30
|
+
return 'text';
|
|
31
|
+
}
|
|
32
|
+
const lower = text.toLowerCase();
|
|
33
|
+
|
|
34
|
+
// 1. Email detection (check before bare-domain URL suffix so user@example.com stays 'email')
|
|
35
|
+
const atIdx = text.indexOf('@');
|
|
36
|
+
if (atIdx > 0 && atIdx < text.length - 3) {
|
|
37
|
+
const afterAt = text.slice(atIdx + 1);
|
|
38
|
+
if (!text.includes(' ') && !lower.startsWith('http://') && !lower.startsWith('https://') && afterAt.includes('.') && isAlphaNumOrDashDot(text.charCodeAt(atIdx - 1))) {
|
|
39
|
+
return 'email';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// 2. URL detection
|
|
44
|
+
if (lower.includes('http://') || lower.includes('https://') || lower.includes('www.') || !text.includes(' ') && !text.includes('@') && (lower.endsWith('.com') || lower.endsWith('.id') || lower.endsWith('.org') || lower.endsWith('.net') || lower.endsWith('.io') || lower.endsWith('.dev'))) {
|
|
45
|
+
return 'url';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 3. Currency detection (IDR Rp, USD $, EUR)
|
|
49
|
+
if (lower.startsWith('rp') || lower.includes(' rp ') || lower.startsWith('idr') || text.startsWith('$') || text.includes('€')) {
|
|
50
|
+
let hasDigit = false;
|
|
51
|
+
for (let i = 0; i < text.length; i++) {
|
|
52
|
+
if (isDigitCharCode(text.charCodeAt(i))) {
|
|
53
|
+
hasDigit = true;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
if (hasDigit) {
|
|
58
|
+
return 'currency';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Analyze digit & letter composition
|
|
63
|
+
let digitCount = 0;
|
|
64
|
+
let letterCount = 0;
|
|
65
|
+
let maxContiguousDigits = 0;
|
|
66
|
+
let currentDigits = 0;
|
|
67
|
+
for (let i = 0; i < text.length; i++) {
|
|
68
|
+
const ch = text.charCodeAt(i);
|
|
69
|
+
if (isDigitCharCode(ch)) {
|
|
70
|
+
digitCount++;
|
|
71
|
+
currentDigits++;
|
|
72
|
+
if (currentDigits > maxContiguousDigits) {
|
|
73
|
+
maxContiguousDigits = currentDigits;
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
if (ch !== 32 && ch !== 45) {
|
|
77
|
+
currentDigits = 0;
|
|
78
|
+
}
|
|
79
|
+
if (ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122) {
|
|
80
|
+
letterCount++;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// 4. Indonesian 16-digit NIK / KTP ID
|
|
86
|
+
if (maxContiguousDigits === 16 || digitCount === 16 && letterCount <= 3) {
|
|
87
|
+
return 'nik';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// 5. Phone number detection (+62 / 08 / international formats with 8-15 digits)
|
|
91
|
+
if (letterCount <= 4 && digitCount >= 8 && digitCount <= 15 && (text.startsWith('+') || text.startsWith('08') || text.startsWith('(0') || text.startsWith('628') || text.includes('-'))) {
|
|
92
|
+
return 'phone';
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 6. Pure numeric identifier / quantity / code
|
|
96
|
+
if (digitCount > 0 && letterCount === 0 && text.length <= 24) {
|
|
97
|
+
return 'number';
|
|
98
|
+
}
|
|
99
|
+
return 'text';
|
|
100
|
+
}
|
|
101
|
+
function normalizeMLKitBounds(bounds, frameWidth, frameHeight) {
|
|
102
|
+
'worklet';
|
|
103
|
+
|
|
104
|
+
if (!bounds || frameWidth <= 0 || frameHeight <= 0) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
const w = Number.isFinite(bounds.width) ? bounds.width : 0;
|
|
108
|
+
const h = Number.isFinite(bounds.height) ? bounds.height : 0;
|
|
109
|
+
if (w <= 0 || h <= 0) {
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// react-native-vision-camera-mlkit populates bounds.left / bounds.top as top-left pixels
|
|
114
|
+
// and bounds.x / bounds.y as exactCenterX / exactCenterY.
|
|
115
|
+
const rawLeft = typeof bounds.left === 'number' && Number.isFinite(bounds.left) ? bounds.left : Number.isFinite(bounds.x) ? bounds.x - w * 0.5 : 0;
|
|
116
|
+
const rawTop = typeof bounds.top === 'number' && Number.isFinite(bounds.top) ? bounds.top : Number.isFinite(bounds.y) ? bounds.y - h * 0.5 : 0;
|
|
117
|
+
return (0, _rnCameraAi.clampBox)({
|
|
118
|
+
x: rawLeft / frameWidth,
|
|
119
|
+
y: rawTop / frameHeight,
|
|
120
|
+
width: w / frameWidth,
|
|
121
|
+
height: h / frameHeight
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function normalizeMLKitCorners(corners, frameWidth, frameHeight) {
|
|
125
|
+
'worklet';
|
|
126
|
+
|
|
127
|
+
if (!corners || !Array.isArray(corners) || corners.length === 0) {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
if (frameWidth <= 0 || frameHeight <= 0) {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
const normalized = [];
|
|
134
|
+
for (let i = 0; i < corners.length; i++) {
|
|
135
|
+
const pt = corners[i];
|
|
136
|
+
if (pt && Number.isFinite(pt.x) && Number.isFinite(pt.y)) {
|
|
137
|
+
normalized.push({
|
|
138
|
+
x: Math.max(0, Math.min(1, pt.x / frameWidth)),
|
|
139
|
+
y: Math.max(0, Math.min(1, pt.y / frameHeight))
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return normalized.length > 0 ? normalized : undefined;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Worklet-safe parser translating raw Google ML Kit TextRecognitionResult objects
|
|
148
|
+
* into normalized [0..1] @masumdev/rn-camera-ai DetectionResult arrays.
|
|
149
|
+
*/
|
|
150
|
+
function parseMLKitTextResult(rawResult, frameWidth, frameHeight, options = {}) {
|
|
151
|
+
'worklet';
|
|
152
|
+
|
|
153
|
+
if (!rawResult || !Array.isArray(rawResult.blocks) || frameWidth <= 0 || frameHeight <= 0) {
|
|
154
|
+
return [];
|
|
155
|
+
}
|
|
156
|
+
const granularity = options.granularity ?? 'line';
|
|
157
|
+
const entityFilter = options.entityFilter ?? 'all';
|
|
158
|
+
const minTextLength = typeof options.minTextLength === 'number' && options.minTextLength >= 0 ? options.minTextLength : 1;
|
|
159
|
+
const minConfidence = typeof options.minConfidence === 'number' && Number.isFinite(options.minConfidence) ? Math.max(0, Math.min(1, options.minConfidence)) : 0;
|
|
160
|
+
const maxResults = typeof options.maxResults === 'number' && options.maxResults >= 0 ? Math.floor(options.maxResults) : 30;
|
|
161
|
+
const defaultConfidence = typeof options.defaultConfidence === 'number' && Number.isFinite(options.defaultConfidence) ? Math.max(0, Math.min(1, options.defaultConfidence)) : 0.92;
|
|
162
|
+
if (maxResults === 0) {
|
|
163
|
+
return [];
|
|
164
|
+
}
|
|
165
|
+
const fullText = typeof rawResult.text === 'string' ? rawResult.text : '';
|
|
166
|
+
const results = [];
|
|
167
|
+
let itemIdx = 0;
|
|
168
|
+
const pushCandidate = (textValue, bounds, corners, rawConfidence, rawAngle, languages) => {
|
|
169
|
+
if (results.length >= maxResults) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const trimmed = typeof textValue === 'string' ? textValue.trim() : '';
|
|
173
|
+
if (trimmed.length < minTextLength) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
const resolvedConfidence = typeof rawConfidence === 'number' && Number.isFinite(rawConfidence) ? Math.max(0, Math.min(1, rawConfidence)) : defaultConfidence;
|
|
177
|
+
if (resolvedConfidence < minConfidence) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const category = classifyOcrEntity(trimmed);
|
|
181
|
+
if (entityFilter !== 'all' && category !== entityFilter) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const normalizedBox = normalizeMLKitBounds(bounds, frameWidth, frameHeight);
|
|
185
|
+
if (!normalizedBox || normalizedBox.width <= 0 || normalizedBox.height <= 0) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
const normalizedCorners = normalizeMLKitCorners(corners, frameWidth, frameHeight);
|
|
189
|
+
const resolvedLanguages = Array.isArray(languages) && languages.length > 0 ? languages : ['und'];
|
|
190
|
+
results.push({
|
|
191
|
+
id: `ocr-${granularity}-${itemIdx++}`,
|
|
192
|
+
label: trimmed,
|
|
193
|
+
confidence: resolvedConfidence,
|
|
194
|
+
boundingBox: normalizedBox,
|
|
195
|
+
ocr: {
|
|
196
|
+
text: trimmed,
|
|
197
|
+
granularity,
|
|
198
|
+
category,
|
|
199
|
+
languages: resolvedLanguages,
|
|
200
|
+
confidence: typeof rawConfidence === 'number' && Number.isFinite(rawConfidence) ? resolvedConfidence : undefined,
|
|
201
|
+
angle: typeof rawAngle === 'number' && Number.isFinite(rawAngle) ? rawAngle : undefined,
|
|
202
|
+
corners: normalizedCorners,
|
|
203
|
+
fullText
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
for (let b = 0; b < rawResult.blocks.length; b++) {
|
|
208
|
+
const block = rawResult.blocks[b];
|
|
209
|
+
if (!block) {
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
if (granularity === 'block') {
|
|
213
|
+
const firstLine = block.lines && block.lines[0];
|
|
214
|
+
pushCandidate(block.text, block.bounds, block.corners, firstLine?.confidence, firstLine?.angle, block.languages);
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
const lines = Array.isArray(block.lines) ? block.lines : [];
|
|
218
|
+
for (let l = 0; l < lines.length; l++) {
|
|
219
|
+
const line = lines[l];
|
|
220
|
+
if (!line) {
|
|
221
|
+
continue;
|
|
222
|
+
}
|
|
223
|
+
if (granularity === 'line') {
|
|
224
|
+
pushCandidate(line.text, line.bounds, line.corners, line.confidence, line.angle, line.languages ?? block.languages);
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
const elements = Array.isArray(line.elements) ? line.elements : [];
|
|
228
|
+
for (let e = 0; e < elements.length; e++) {
|
|
229
|
+
const element = elements[e];
|
|
230
|
+
if (!element) {
|
|
231
|
+
continue;
|
|
232
|
+
}
|
|
233
|
+
pushCandidate(element.text, element.bounds, element.corners, element.confidence, element.angle, element.languages ?? line.languages ?? block.languages);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return results;
|
|
238
|
+
}
|
|
239
|
+
function dedupeStrings(items) {
|
|
240
|
+
const seen = new Set();
|
|
241
|
+
const out = [];
|
|
242
|
+
for (let i = 0; i < items.length; i++) {
|
|
243
|
+
const item = items[i].trim();
|
|
244
|
+
if (item.length > 0 && !seen.has(item)) {
|
|
245
|
+
seen.add(item);
|
|
246
|
+
out.push(item);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Extracts structured entities (NIK/KTP, Emails, Phone numbers, URLs, Currencies)
|
|
254
|
+
* from raw recognized document transcript text.
|
|
255
|
+
*/
|
|
256
|
+
function extractStructuredOcrData(fullText) {
|
|
257
|
+
if (!fullText || typeof fullText !== 'string') {
|
|
258
|
+
return {
|
|
259
|
+
niks: [],
|
|
260
|
+
emails: [],
|
|
261
|
+
phones: [],
|
|
262
|
+
urls: [],
|
|
263
|
+
currencies: []
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
const emailMatches = fullText.match(/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g) ?? [];
|
|
267
|
+
const emailDomains = new Set(emailMatches.map(em => {
|
|
268
|
+
const idx = em.indexOf('@');
|
|
269
|
+
return idx >= 0 ? em.slice(idx + 1).toLowerCase() : '';
|
|
270
|
+
}));
|
|
271
|
+
const rawUrlMatches = fullText.match(/(?:https?:\/\/|www\.)[^\s/$.?#].[^\s]*|(?:^|[\s(])[a-zA-Z0-9-]+\.(?:com|id|org|net|io|dev|co\.id)(?:\/[^\s]*)?/gi) ?? [];
|
|
272
|
+
const urlMatches = rawUrlMatches.map(u => u.trim().replace(/^[(\s]+/, '')).filter(u => {
|
|
273
|
+
const lowerUrl = u.toLowerCase();
|
|
274
|
+
return lowerUrl.startsWith('http') || lowerUrl.startsWith('www.') || !emailDomains.has(lowerUrl);
|
|
275
|
+
});
|
|
276
|
+
const nikMatches = fullText.match(/\b\d{16}\b/g) ?? [];
|
|
277
|
+
const phoneMatches = fullText.match(/(?:\+62|62|08|\+\d{1,3})[\d\s-]{7,15}\d/g) ?? [];
|
|
278
|
+
const currencyMatches = fullText.match(/(?:Rp\.?|IDR|\$|€)\s?\d{1,3}(?:[.,]\d{3})*(?:[.,]\d{1,2})?/gi) ?? [];
|
|
279
|
+
return {
|
|
280
|
+
niks: dedupeStrings(nikMatches),
|
|
281
|
+
emails: dedupeStrings(emailMatches),
|
|
282
|
+
phones: dedupeStrings(phoneMatches),
|
|
283
|
+
urls: dedupeStrings(urlMatches),
|
|
284
|
+
currencies: dedupeStrings(currencyMatches)
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
//# sourceMappingURL=mlkitTextParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_rnCameraAi","require","isDigitCharCode","code","isAlphaNumOrDashDot","classifyOcrEntity","rawText","text","trim","length","lower","toLowerCase","atIdx","indexOf","afterAt","slice","includes","startsWith","charCodeAt","endsWith","hasDigit","i","digitCount","letterCount","maxContiguousDigits","currentDigits","ch","normalizeMLKitBounds","bounds","frameWidth","frameHeight","w","Number","isFinite","width","h","height","rawLeft","left","x","rawTop","top","y","clampBox","normalizeMLKitCorners","corners","Array","isArray","undefined","normalized","pt","push","Math","max","min","parseMLKitTextResult","rawResult","options","blocks","granularity","entityFilter","minTextLength","minConfidence","maxResults","floor","defaultConfidence","fullText","results","itemIdx","pushCandidate","textValue","rawConfidence","rawAngle","languages","trimmed","resolvedConfidence","category","normalizedBox","normalizedCorners","resolvedLanguages","id","label","confidence","boundingBox","ocr","angle","b","block","firstLine","lines","l","line","elements","e","element","dedupeStrings","items","seen","Set","out","item","has","add","extractStructuredOcrData","niks","emails","phones","urls","currencies","emailMatches","match","emailDomains","map","em","idx","rawUrlMatches","urlMatches","u","replace","filter","lowerUrl","nikMatches","phoneMatches","currencyMatches"],"sourceRoot":"../../../src","sources":["parser/mlkitTextParser.ts"],"mappings":";;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAiBA,SAASC,eAAeA,CAACC,IAAY,EAAW;EAC9C,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AQ,GAAGH,CAAC,CAAC1G,WAAW,CAAC,CAAC;IAChC,OACE6G,QAAQ,CAACvG,UAAU,CAAC,MAAM,CAAC,IAC3BuG,QAAQ,CAACvG,UAAU,CAAC,MAAM,CAAC,IAC3B,CAAC8F,YAAY,CAACV,GAAG,CAACmB,QAAQ,CAAC;EAE/B,CAAC,CAAC;EAEJ,MAAMC,UAAU,GAAGvD,QAAQ,CAAC4C,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE;EAEtD,MAAMY,YAAY,GAChBxD,QAAQ,CAAC4C,KAAK,CAAC,0CAA0C,CAAC,IAAI,EAAE;EAElE,MAAMa,eAAe,GACnBzD,QAAQ,CAAC4C,KAAK,CAAC,8DAA8D,CAAC,IAC9E,EAAE;EAEJ,OAAO;IACLN,IAAI,EAAET,aAAa,CAAC0B,UAAU,CAAC;IAC/BhB,MAAM,EAAEV,aAAa,CAACc,YAAY,CAAC;IACnCH,MAAM,EAAEX,aAAa,CAAC2B,YAAY,CAAC;IACnCf,IAAI,EAAEZ,aAAa,CAACqB,UAAU,CAAC;IAC/BR,UAAU,EAAEb,aAAa,CAAC4B,eAAe;EAC3C,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _mlkit = require("./mlkit.js");
|
|
7
|
+
Object.keys(_mlkit).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _mlkit[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _mlkit[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mlkit","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/mlkit.ts"],"mappings":"","ignoreList":[]}
|