@agilemotion/oui-react-js 1.8.65 → 1.8.66
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/components/FaceApi.js +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = initModules;
|
|
7
|
+
/**
|
|
8
|
+
* Model initialisation stub.
|
|
9
|
+
*
|
|
10
|
+
* face-api.js models are loaded at runtime via loadFromUri() inside
|
|
11
|
+
* FaceRecognitionComponent. The consuming app only needs to ensure the
|
|
12
|
+
* model files are served as static assets (e.g. via CopyWebpackPlugin
|
|
13
|
+
* copying them to /models/).
|
|
14
|
+
*
|
|
15
|
+
* This function is kept as a no-op so existing imports in consuming apps
|
|
16
|
+
* (e.g. `import initModules from '…/FaceApi'`) continue to work without
|
|
17
|
+
* code changes.
|
|
18
|
+
*/
|
|
19
|
+
function initModules() {
|
|
20
|
+
// no-op – models are fetched at runtime by FaceRecognitionComponent
|
|
21
|
+
}
|
package/package.json
CHANGED