@vonage/ml-transformers 4.2.0 → 4.2.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/dist/docs/assets/highlight.css +3 -3
- package/dist/docs/assets/main.js +4 -2
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/assets/style.css +462 -619
- package/dist/docs/classes/BackgroundTransformer.html +150 -1
- package/dist/docs/classes/MediapipeHelper.html +124 -1
- package/dist/docs/classes/VonageMediaProcessor.html +555 -79
- package/dist/docs/enums/BlurRadius.html +70 -7
- package/dist/docs/enums/ErrorFunction.html +77 -9
- package/dist/docs/enums/PipelineInfoData.html +98 -15
- package/dist/docs/enums/SelfieSegmentationType.html +66 -3
- package/dist/docs/enums/WarningType.html +63 -5
- package/dist/docs/functions/createVonageMediaProcessor.html +111 -0
- package/dist/docs/functions/getSupportedBrowserFeatures.html +109 -0
- package/dist/docs/functions/getVonageFaceDetection.html +116 -0
- package/dist/docs/functions/getVonageFaceMash.html +119 -0
- package/dist/docs/functions/getVonageHands.html +100 -0
- package/dist/docs/functions/getVonageHolistic.html +125 -0
- package/dist/docs/functions/getVonageObjectron.html +111 -0
- package/dist/docs/functions/getVonagePose.html +113 -0
- package/dist/docs/functions/getVonageSelfieSegmentation.html +105 -0
- package/dist/docs/functions/isSupported.html +109 -0
- package/dist/docs/index.html +92 -2
- package/dist/docs/interfaces/FaceDetectionOptions.html +75 -3
- package/dist/docs/interfaces/FaceDetectionResults.html +70 -3
- package/dist/docs/interfaces/FaceMeshOptions.html +105 -3
- package/dist/docs/interfaces/FaceMeshResults.html +75 -3
- package/dist/docs/interfaces/FeatureSupport.html +74 -7
- package/dist/docs/interfaces/HandsOptions.html +85 -3
- package/dist/docs/interfaces/HandsResults.html +80 -3
- package/dist/docs/interfaces/HolisticOptions.html +105 -3
- package/dist/docs/interfaces/HolisticResults.html +95 -3
- package/dist/docs/interfaces/ObjectronOptions.html +105 -3
- package/dist/docs/interfaces/ObjectronResults.html +70 -3
- package/dist/docs/interfaces/PoseOptions.html +95 -3
- package/dist/docs/interfaces/PoseResults.html +80 -3
- package/dist/docs/interfaces/SelfieSegmentationOptions.html +70 -3
- package/dist/docs/interfaces/SelfieSegmentationResults.html +70 -3
- package/dist/docs/interfaces/SupportedBrowserFeatures.html +88 -11
- package/dist/docs/modules.html +158 -222
- package/dist/docs/types/AssetBackgroundConfig.html +103 -0
- package/dist/docs/types/BackgroundBlurConfig.html +107 -0
- package/dist/docs/types/BackgroundOptions.html +96 -0
- package/dist/docs/types/DropInfo.html +107 -0
- package/dist/docs/types/ErrorData.html +111 -0
- package/dist/docs/types/EventDataMap.html +112 -0
- package/dist/docs/types/EventMetaData.html +103 -0
- package/dist/docs/types/MediaPipeModelConfig.html +124 -0
- package/dist/docs/types/MediaPipeModelType.html +96 -0
- package/dist/docs/types/MediaPipeResults.html +96 -0
- package/dist/docs/types/MediaPipeResultsListener.html +122 -0
- package/dist/docs/types/MediaProcessorBaseConfig.html +120 -0
- package/dist/docs/types/MediaProcessorConfig.html +96 -0
- package/dist/docs/types/MediapipeConfig.html +106 -0
- package/dist/docs/types/SilhouetteBlurConfig.html +107 -0
- package/dist/docs/types/VideoBackgroundConfig.html +103 -0
- package/dist/docs/types/VirtualBackgroundConfig.html +103 -0
- package/dist/docs/types/WarnData.html +111 -0
- package/dist/ml-transformers.es.js +12178 -17370
- package/dist/ml-transformers.min.js +3 -3
- package/dist/ml-transformers.static.js +12178 -17369
- package/dist/ml-transformers.umd.js +58 -57
- package/dist/types/src/processors/processor-worker.d.ts +3 -2
- package/package.json +30 -8
- package/dist/docs/assets/icons.css +0 -1043
- package/dist/docs/assets/icons.png +0 -0
- package/dist/docs/assets/icons@2x.png +0 -0
- package/dist/docs/assets/widgets.png +0 -0
- package/dist/docs/assets/widgets@2x.png +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { EventDataMap, VonageMetadata } from "@vonage/media-processor";
|
|
1
|
+
import { ErrorData, EventDataMap, PipelineInfoData, VonageMetadata, WarnData } from "@vonage/media-processor";
|
|
2
2
|
import { BackgroundOptions, MediaProcessorConfig } from "../../main";
|
|
3
3
|
import { FlickeringOptions } from "../webgl/pipelines/improve-segmentation-mask";
|
|
4
4
|
export interface MediaProcessorEvent {
|
|
5
5
|
name: keyof EventDataMap;
|
|
6
|
-
data:
|
|
6
|
+
data: WarnData | ErrorData | PipelineInfoData;
|
|
7
7
|
}
|
|
8
8
|
export declare class ProcessorWorker {
|
|
9
9
|
private backgroundTransformer;
|
|
10
10
|
private mediaProcessor;
|
|
11
11
|
private rate;
|
|
12
12
|
private resolveOnMediaProcessor?;
|
|
13
|
+
private eventsQueue;
|
|
13
14
|
init(config: MediaProcessorConfig): Promise<void>;
|
|
14
15
|
onMediaProcessorEvent(): Promise<MediaProcessorEvent>;
|
|
15
16
|
setTrackExpectedRate(rate: number): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/ml-transformers",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"author": "Guy Mininberg <guy.mininberg@vonage.com>",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Guy Mininberg <guy.mininberg@vonage.com>",
|
|
@@ -28,8 +28,15 @@
|
|
|
28
28
|
"build:static": "node ./scripts/build-static.js && minify ./dist/ml-transformers.static.js > ./dist/ml-transformers.min.js ",
|
|
29
29
|
"doc": "typedoc --excludePrivate --excludeProtected --disableSources --out dist/docs lib/main.ts",
|
|
30
30
|
"dev": "vite",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"preview": "vite preview",
|
|
32
|
+
"e2e:app": "vite ./tests/e2e/apps/vite",
|
|
33
|
+
"e2e:app:run:vite": "vite ./tests/e2e/apps/vite",
|
|
34
|
+
"e2e:app:run:webpack": "vite ./tests/e2e/apps/webpack/app",
|
|
35
|
+
"e2e:app:install": "node ./tests/e2e/scripts/install-app.js",
|
|
36
|
+
"e2e:app:build": "node ./tests/e2e/scripts/build-app.js",
|
|
37
|
+
"test": "vitest --run --threads false",
|
|
38
|
+
"version:local": "node -pe 'require(\"./package.json\").version'",
|
|
39
|
+
"version:published": "npm show @vonage/ml-transformers version"
|
|
33
40
|
},
|
|
34
41
|
"dependencies": {
|
|
35
42
|
"@mediapipe/face_detection": "0.4.1646425229",
|
|
@@ -46,7 +53,7 @@
|
|
|
46
53
|
"@vonage/js-workerizer": "^1.0.1",
|
|
47
54
|
"@vonage/media-processor": "2.0.0",
|
|
48
55
|
"axios": "^0.25.0",
|
|
49
|
-
"twgl.js": "^5.0
|
|
56
|
+
"twgl.js": "^5.1.0",
|
|
50
57
|
"typescript-optional": "3.0.0-alpha.3",
|
|
51
58
|
"uuid": "^8.3.2",
|
|
52
59
|
"wasm-feature-detect": "^1.2.11"
|
|
@@ -64,11 +71,26 @@
|
|
|
64
71
|
}
|
|
65
72
|
},
|
|
66
73
|
"devDependencies": {
|
|
67
|
-
"@tsconfig/node12": "^1.0.
|
|
74
|
+
"@tsconfig/node12": "^1.0.11",
|
|
75
|
+
"@types/chai": "^4.3.3",
|
|
76
|
+
"@types/mocha": "^10.0.0",
|
|
77
|
+
"@types/puppeteer": "^5.4.7",
|
|
78
|
+
"@types/rimraf": "^3.0.2",
|
|
79
|
+
"@vitest/ui": "^0.24.3",
|
|
80
|
+
"chai": "^4.3.6",
|
|
81
|
+
"chai-image": "file:./lib/libs/chai-image-3.0.0.tgz",
|
|
82
|
+
"mocha": "^10.1.0",
|
|
68
83
|
"minify": "^9.1.0",
|
|
69
84
|
"npm-run-all": "^4.1.5",
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
85
|
+
"puppeteer": "^19.0.0",
|
|
86
|
+
"rimraf": "^3.0.2",
|
|
87
|
+
"typedoc": "^0.23.17",
|
|
88
|
+
"typescript": "^4.8.4",
|
|
89
|
+
"vite": "3.1.8",
|
|
90
|
+
"vitest": "^0.24.3"
|
|
91
|
+
},
|
|
92
|
+
"repository": "https://github.com/Vonage/vonage-media-transformers-samples",
|
|
93
|
+
"publishConfig": {
|
|
94
|
+
"registry": "https://registry.npmjs.org"
|
|
73
95
|
}
|
|
74
96
|
}
|