@masumdev/rn-camera-ai-tflite 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +374 -2
- package/lib/commonjs/detector/TFLiteFaceRecognizer.js +690 -0
- package/lib/commonjs/detector/TFLiteFaceRecognizer.js.map +1 -0
- package/lib/commonjs/detector/TFLiteObjectDetector.js +392 -0
- package/lib/commonjs/detector/TFLiteObjectDetector.js.map +1 -0
- package/lib/commonjs/detector/index.js +39 -0
- package/lib/commonjs/detector/index.js.map +1 -0
- package/lib/commonjs/detector/modelLoader.js +139 -0
- package/lib/commonjs/detector/modelLoader.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/blazeFaceParser.js +771 -0
- package/lib/commonjs/parser/blazeFaceParser.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/outputParser.js +196 -0
- package/lib/commonjs/parser/outputParser.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/resize-plugin.d.ts +20 -0
- package/lib/commonjs/types/tflite.js +6 -0
- package/lib/commonjs/types/tflite.js.map +1 -0
- package/lib/module/detector/TFLiteFaceRecognizer.js +684 -0
- package/lib/module/detector/TFLiteFaceRecognizer.js.map +1 -0
- package/lib/module/detector/TFLiteObjectDetector.js +386 -0
- package/lib/module/detector/TFLiteObjectDetector.js.map +1 -0
- package/lib/module/detector/index.js +6 -0
- package/lib/module/detector/index.js.map +1 -0
- package/lib/module/detector/modelLoader.js +133 -0
- package/lib/module/detector/modelLoader.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/blazeFaceParser.js +756 -0
- package/lib/module/parser/blazeFaceParser.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/outputParser.js +192 -0
- package/lib/module/parser/outputParser.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/resize-plugin.d.ts +20 -0
- package/lib/module/types/tflite.js +4 -0
- package/lib/module/types/tflite.js.map +1 -0
- package/lib/typescript/commonjs/detector/TFLiteFaceRecognizer.d.ts +59 -0
- package/lib/typescript/commonjs/detector/TFLiteFaceRecognizer.d.ts.map +1 -0
- package/lib/typescript/commonjs/detector/TFLiteObjectDetector.d.ts +41 -0
- package/lib/typescript/commonjs/detector/TFLiteObjectDetector.d.ts.map +1 -0
- package/lib/typescript/commonjs/detector/index.d.ts +4 -0
- package/lib/typescript/commonjs/detector/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/detector/modelLoader.d.ts +23 -0
- package/lib/typescript/commonjs/detector/modelLoader.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/blazeFaceParser.d.ts +68 -0
- package/lib/typescript/commonjs/parser/blazeFaceParser.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/outputParser.d.ts +17 -0
- package/lib/typescript/commonjs/parser/outputParser.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/tflite.d.ts +233 -0
- package/lib/typescript/commonjs/types/tflite.d.ts.map +1 -0
- package/lib/typescript/module/detector/TFLiteFaceRecognizer.d.ts +59 -0
- package/lib/typescript/module/detector/TFLiteFaceRecognizer.d.ts.map +1 -0
- package/lib/typescript/module/detector/TFLiteObjectDetector.d.ts +41 -0
- package/lib/typescript/module/detector/TFLiteObjectDetector.d.ts.map +1 -0
- package/lib/typescript/module/detector/index.d.ts +4 -0
- package/lib/typescript/module/detector/index.d.ts.map +1 -0
- package/lib/typescript/module/detector/modelLoader.d.ts +23 -0
- package/lib/typescript/module/detector/modelLoader.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/blazeFaceParser.d.ts +68 -0
- package/lib/typescript/module/parser/blazeFaceParser.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/outputParser.d.ts +17 -0
- package/lib/typescript/module/parser/outputParser.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/tflite.d.ts +233 -0
- package/lib/typescript/module/types/tflite.d.ts.map +1 -0
- package/package.json +121 -4
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getEffectivePlatform = getEffectivePlatform;
|
|
7
|
+
exports.loadModelWithFallback = loadModelWithFallback;
|
|
8
|
+
exports.validateModelSource = validateModelSource;
|
|
9
|
+
var _rnCameraAi = require("@masumdev/rn-camera-ai");
|
|
10
|
+
/**
|
|
11
|
+
* Validates that the provided model source conforms to supported TFLite model source representations.
|
|
12
|
+
* Throws a typed ModelLoadError if the source is invalid or empty.
|
|
13
|
+
*/
|
|
14
|
+
function validateModelSource(source) {
|
|
15
|
+
if (source === null || source === undefined) {
|
|
16
|
+
throw new _rnCameraAi.ModelLoadError('Model source cannot be null or undefined', 'MODEL_LOAD_ERROR');
|
|
17
|
+
}
|
|
18
|
+
if (typeof source === 'number') {
|
|
19
|
+
if (!Number.isFinite(source) || source < 0 || !Number.isInteger(source)) {
|
|
20
|
+
throw new _rnCameraAi.ModelLoadError('Invalid model source: asset ID must be a non-negative finite integer', 'MODEL_LOAD_ERROR');
|
|
21
|
+
}
|
|
22
|
+
return source;
|
|
23
|
+
}
|
|
24
|
+
if (typeof source === 'string') {
|
|
25
|
+
if (source.trim().length === 0) {
|
|
26
|
+
throw new _rnCameraAi.ModelLoadError('Invalid model source: model path or URL cannot be empty or whitespace-only', 'MODEL_LOAD_ERROR');
|
|
27
|
+
}
|
|
28
|
+
return source.trim();
|
|
29
|
+
}
|
|
30
|
+
if (typeof source === 'object' && 'url' in source) {
|
|
31
|
+
const url = source.url;
|
|
32
|
+
if (typeof url !== 'string' || url.trim().length === 0) {
|
|
33
|
+
throw new _rnCameraAi.ModelLoadError('Invalid model source: model URL cannot be empty or whitespace-only', 'MODEL_LOAD_ERROR');
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
url: url.trim()
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
throw new _rnCameraAi.ModelLoadError('Invalid model source: expected asset ID number, file path string, or { url: string }', 'MODEL_LOAD_ERROR');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Determines the target operating platform for delegate selection.
|
|
44
|
+
*/
|
|
45
|
+
function getEffectivePlatform(platformOverride) {
|
|
46
|
+
if (platformOverride && typeof platformOverride === 'string') {
|
|
47
|
+
return platformOverride.toLowerCase();
|
|
48
|
+
}
|
|
49
|
+
try {
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
51
|
+
const rn = require('react-native');
|
|
52
|
+
if (typeof rn?.Platform?.OS === 'string' && rn.Platform.OS.length > 0) {
|
|
53
|
+
return rn.Platform.OS.toLowerCase();
|
|
54
|
+
}
|
|
55
|
+
} catch {
|
|
56
|
+
// Fallback when react-native is not present
|
|
57
|
+
}
|
|
58
|
+
if (typeof process !== 'undefined' && process.env?.TEST_PLATFORM_OS) {
|
|
59
|
+
return process.env.TEST_PLATFORM_OS.toLowerCase();
|
|
60
|
+
}
|
|
61
|
+
return 'android';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Resolves the default model loader function using react-native-fast-tflite if available,
|
|
66
|
+
* or provides a fallback runner for headless test environments.
|
|
67
|
+
*/
|
|
68
|
+
function resolveDefaultLoader() {
|
|
69
|
+
try {
|
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
71
|
+
const fastTflite = require('react-native-fast-tflite');
|
|
72
|
+
if (typeof fastTflite?.loadTensorflowModel === 'function') {
|
|
73
|
+
const loadFn = fastTflite.loadTensorflowModel;
|
|
74
|
+
return (s, d) => {
|
|
75
|
+
const normalizedSource = typeof s === 'string' ? {
|
|
76
|
+
url: s.startsWith('file://') || s.startsWith('http://') || s.startsWith('https://') ? s : `file://${s}`
|
|
77
|
+
} : s;
|
|
78
|
+
return loadFn(normalizedSource, d);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
} catch {
|
|
82
|
+
// Native runtime not loaded
|
|
83
|
+
}
|
|
84
|
+
return async (_source, delegates) => {
|
|
85
|
+
if (typeof process !== 'undefined' && process.env?.SIMULATE_GPU_FAILURE === 'true' && delegates.length > 0) {
|
|
86
|
+
throw new Error('GPU delegate initialization failed: OpenCL unavailable');
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
runSync: () => [],
|
|
90
|
+
run: async () => [],
|
|
91
|
+
delegates
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Loads a TensorFlow Lite model with automatic hardware delegate fallback.
|
|
98
|
+
*
|
|
99
|
+
* It attempts to initialize with GPU acceleration ('android-gpu' on Android, 'core-ml' on iOS).
|
|
100
|
+
* If the GPU delegate fails (e.g., unsupported OpenCL/OpenGL ops), it falls back to CPU ([])
|
|
101
|
+
* without throwing or crashing, safely emitting onDelegateFallback.
|
|
102
|
+
*
|
|
103
|
+
* @param source Model bundle ID, file path string, or URL object
|
|
104
|
+
* @param options Loading options including GPU preference and fallback callback
|
|
105
|
+
* @returns Initialized model and active delegate ('gpu' | 'cpu')
|
|
106
|
+
*/
|
|
107
|
+
async function loadModelWithFallback(source, options) {
|
|
108
|
+
const validSource = validateModelSource(source);
|
|
109
|
+
const loader = options?.loadModel ?? resolveDefaultLoader();
|
|
110
|
+
const platform = getEffectivePlatform(options?.platform);
|
|
111
|
+
const useGpu = options?.useGpu !== false;
|
|
112
|
+
if (useGpu) {
|
|
113
|
+
const requestedDelegate = platform === 'android' ? 'android-gpu' : 'core-ml';
|
|
114
|
+
try {
|
|
115
|
+
const model = await loader(validSource, [requestedDelegate]);
|
|
116
|
+
return {
|
|
117
|
+
model,
|
|
118
|
+
activeDelegate: 'gpu',
|
|
119
|
+
source: validSource
|
|
120
|
+
};
|
|
121
|
+
} catch {
|
|
122
|
+
// GPU delegate failed to initialize: invoke fallback callback
|
|
123
|
+
options?.onDelegateFallback?.(requestedDelegate, 'cpu');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Graceful CPU fallback
|
|
128
|
+
try {
|
|
129
|
+
const cpuModel = await loader(validSource, []);
|
|
130
|
+
return {
|
|
131
|
+
model: cpuModel,
|
|
132
|
+
activeDelegate: 'cpu',
|
|
133
|
+
source: validSource
|
|
134
|
+
};
|
|
135
|
+
} catch (cpuError) {
|
|
136
|
+
throw new _rnCameraAi.ModelLoadError(cpuError instanceof Error ? cpuError.message : 'Failed to load TFLite model on CPU', 'MODEL_LOAD_ERROR', cpuError);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=modelLoader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_rnCameraAi","require","validateModelSource","source","undefined","ModelLoadError","Number","isFinite","isInteger","trim","length","url","getEffectivePlatform","platformOverride","toLowerCase","rn","Platform","OS","process","env","TEST_PLATFORM_OS","resolveDefaultLoader","fastTflite","loadTensorflowModel","loadFn","s","d","normalizedSource","startsWith","_source","delegates","SIMULATE_GPU_FAILURE","Error","runSync","run","loadModelWithFallback","options","validSource","loader","loadModel","platform","useGpu","requestedDelegate","model","activeDelegate","onDelegateFallback","cpuModel","cpuError","message"],"sourceRoot":"../../../src","sources":["detector/modelLoader.ts"],"mappings":";;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAQA;AACA;AACA;AACA;AACO,SAASC,mBAAmBA,CAACC,MAAe,EAAqB;EACtE,IAAIA,MAAM,KAAK,IAAI,IAAIA,MAAM,KAAKC,SAAS,EAAE;IAC3C,MAAM,IAAIC,0BAAc,CAAC,0CAA0C,EAAE,kBAAkB,CAAC;EAC1F;EAEA,IAAI,OAAOF,MAAM,KAAK,QAAQ,EAAE;IAC9B,IAAI,CAACG,MAAM,CAACC,QAAQ,CAACJ,MAAM,CAAC,IAAIA,MAAM,GAAG,CAAC,IAAI,CAACG,MAAM,CAACE,SAAS,CAACL,MAAM,CAAC,EAAE;MACvE,MAAM,IAAIE,0BAAc,CACtB,sEAAsE,EACtE,kBACF,CAAC;IACH;IACA,OAAOF,MAAM;EACf;EAEA,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;IAC9B,IAAIA,MAAM,CAACM,IAAI,CAAC,CAAC,CAACC,MAAM,KAAK,CAAC,EAAE;MAC9B,MAAM,IAAIL,0BAAc,CACtB,4EAA4E,EAC5E,kBACF,CAAC;IACH;IACA,OAAOF,MAAM,CAACM,IAAI,CAAC,CAAC;EACtB;EAEA,IAAI,OAAON,MAAM,KAAK,QAAQ,IAAI,KAAK,IAAKA,MAAkC,EAAE;IAC9E,MAAMQ,GAAG,GAAIR,MAAM,CAAsBQ,GAAG;IAC5C,IAAI,OAAOA,GAAG,KAAK,QAAQ,IAAIA,GAAG,CAACF,IAAI,CAAC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AC,CAAC;MAC5D,OAAO;QACLC,KAAK;QACLC,cAAc,EAAE,KAAK;QACrBzC,MAAM,EAAEkC;MACV,CAAC;IACH,CAAC,CAAC,MAAM;MACN;MACAD,OAAO,EAAES,kBAAkB,GAAGH,iBAAiB,EAAE,KAAK,CAAC;IACzD;EACF;;EAEA;EACA,IAAI;IACF,MAAMI,QAAQ,GAAG,MAAMR,MAAM,CAACD,WAAW,EAAE,EAAE,CAAC;IAC9C,OAAO;MACLM,KAAK,EAAEG,QAAQ;MACfF,cAAc,EAAE,KAAK;MACrBzC,MAAM,EAAEkC;IACV,CAAC;EACH,CAAC,CAAC,OAAOU,QAAiB,EAAE;IAC1B,MAAM,IAAI1C,0BAAc,CACtB0C,QAAQ,YAAYf,KAAK,GAAGe,QAAQ,CAACC,OAAO,GAAG,oCAAoC,EACnF,kBAAkB,EAClBD,QACF,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _index = require("./types/index.js");
|
|
7
|
+
Object.keys(_index).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _index[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _index2 = require("./parser/index.js");
|
|
18
|
+
Object.keys(_index2).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _index2[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _index2[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _index3 = require("./detector/index.js");
|
|
29
|
+
Object.keys(_index3).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _index3[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _index3[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_index2","_index3"],"sourceRoot":"../../src","sources":["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;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,OAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,OAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,OAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,OAAA,CAAAN,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|