81 | Processing FPS:
82 | Render FPS: 83 |
├── BanubaClientToken.js
├── BanubaPlayer.js
├── LICENSE
├── README.md
├── assets
├── effects
│ ├── BG.zip
│ ├── ConfusedRabbit.zip
│ ├── DebugFRX.zip
│ ├── Detection_gestures.zip
│ ├── Eye_lenses.zip
│ ├── Eye_lenses_Blue.zip
│ ├── Eye_lenses_Green.zip
│ ├── EyesWitening_Toggle.zip
│ ├── FG.zip
│ ├── FlappyPlane_mouth.zip
│ ├── Full_Body.zip
│ ├── Gangster.zip
│ ├── Hades.zip
│ ├── Hair.zip
│ ├── Lips.zip
│ ├── Low_look_clubs.zip
│ ├── MinnieMouse7_multi.zip
│ ├── Morphings_1.7.0.zip
│ ├── Regular_blur.zip
│ ├── Retrowave.zip
│ ├── Ring_01.zip
│ ├── Skin.zip
│ ├── SkinSoftening.zip
│ ├── Spider2.zip
│ ├── Sunset.zip
│ ├── TeethWitening_Toggle.zip
│ ├── TrollGrandma.zip
│ ├── VTO_Hair_blue.zip
│ ├── VTO_Hair_green.zip
│ ├── VTO_Hair_strand.zip
│ ├── VTO_Headdresse_01.zip
│ ├── What_Animal_Are_You.zip
│ ├── WhooshBeautyFemale.zip
│ ├── dialect.zip
│ ├── earrings_01.zip
│ ├── glasses_RayBan4165_Dark.zip
│ ├── heart_rate.zip
│ ├── necklace_01.zip
│ ├── test_Ruler.zip
│ └── video_BG_RainyCafe.zip
└── icons
│ ├── controls
│ ├── icon-arrow.svg
│ ├── icon-record-active.svg
│ ├── icon-record.svg
│ ├── icon-reset.svg
│ ├── icon-screenshot-active.svg
│ ├── icon-screenshot.svg
│ ├── icon-sound-active.svg
│ └── icon-sound.svg
│ ├── effects
│ ├── BG.png
│ ├── Eye_lenses_Blue.png
│ ├── Eye_lenses_Green.png
│ ├── FG.png
│ ├── Glasses_Dark.png
│ ├── Regular_blur.png
│ ├── VTO_Hair_blue.png
│ ├── VTO_Hair_green.png
│ ├── VTO_Hair_strand.png
│ ├── WhooshBeautyFemale.png
│ ├── dialect.png
│ ├── earrings_01.png
│ ├── eyebrows_bend.svg
│ ├── eyebrows_height.svg
│ ├── eyebrows_spacing.svg
│ ├── eyes_enlargement.svg
│ ├── eyes_height.svg
│ ├── eyes_lower_eyelid_pos.svg
│ ├── eyes_lower_eyelid_size.svg
│ ├── eyes_rounding.svg
│ ├── eyes_spacing.svg
│ ├── eyes_squint.svg
│ ├── face_cheekbones_narrowing.svg
│ ├── face_cheeks_jaw_narrowing.svg
│ ├── face_cheeks_narrowing.svg
│ ├── face_chin_narrowing.svg
│ ├── face_chin_shortening.svg
│ ├── face_jaw_narrowing.svg
│ ├── face_narrowing.svg
│ ├── face_sunken_cheeks.svg
│ ├── face_v_shape.svg
│ ├── lips_height.svg
│ ├── lips_mouth_size.svg
│ ├── lips_shape.svg
│ ├── lips_size.svg
│ ├── lips_smile.svg
│ ├── lips_thickness.svg
│ ├── necklace_01.png
│ ├── nose_length.svg
│ ├── nose_tip_width.svg
│ ├── nose_width.svg
│ └── video_BG_RainyCafe.png
│ └── hand_gestures
│ ├── Like.svg
│ ├── Ok.svg
│ ├── Palm.svg
│ ├── Rock.svg
│ └── Victory.svg
├── effectsConfig.js
├── import
└── effectsList.js
├── index.html
├── main.js
├── range-requests.sw.js
├── src
├── effect.js
├── elements.js
├── image-source.js
├── index.js
├── state.js
├── toolbar.js
└── viewer-controls.js
└── styles.css
/BanubaClientToken.js:
--------------------------------------------------------------------------------
1 | window.BANUBA_CLIENT_TOKEN = "PUT YOUR CLIENT TOKEN HERE"
--------------------------------------------------------------------------------
/BanubaPlayer.js:
--------------------------------------------------------------------------------
1 | let SDK_VERSION = "1.17.0";
2 |
3 | const urlParams = new URLSearchParams(window.location.search);
4 |
5 | if (urlParams.has("sdk")) {
6 | SDK_VERSION = urlParams.get("sdk");
7 | }
8 |
9 | const {
10 | Dom,
11 | Effect,
12 | Image,
13 | ImageCapture,
14 | Module,
15 | Player,
16 | VideoRecorder,
17 | Webcam,
18 | VERSION,
19 | } = await import(
20 | `https://cdn.jsdelivr.net/npm/@banuba/webar@${SDK_VERSION}/dist/BanubaSDK.browser.esm.min.js`
21 | );
22 |
23 | if (VERSION != SDK_VERSION) {
24 | console.warn(
25 | `Version dont match: requested ${SDK_VERSION} - received ${VERSION}`
26 | );
27 |
28 | SDK_VERSION = VERSION;
29 |
30 | if (SDK_VERSION.includes("-")) {
31 | console.warn("SDK version includes '-'. Removing it...");
32 | SDK_VERSION = SDK_VERSION.slice(0, SDK_VERSION.indexOf("-"));
33 | }
34 | }
35 |
36 | const sdkUrl = "https://cdn.jsdelivr.net/npm/@banuba/webar";
37 |
38 | const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
39 | const modulesList = [
40 | "background",
41 | "body",
42 | "eyes",
43 | "face_tracker",
44 | "hair",
45 | "hands",
46 | "lips",
47 | "skin",
48 | ];
49 |
50 | export const fps = {
51 | cam: 0,
52 | processing: 0,
53 | render: 0,
54 | };
55 |
56 | const fpsCounter = {
57 | cam: 0,
58 | processing: 0,
59 | render: 0,
60 | };
61 |
62 | let currentEffect;
63 |
64 | console.log("Load player with SDK: ", SDK_VERSION);
65 |
66 | // Fixes video range requests in Safari that cause AR effects animation delay
67 | // https://docs.banuba.com/far-sdk/tutorials/development/known_issues/web/#effect-animations-are-delayed-in-safari
68 | navigator.serviceWorker.register("./range-requests.sw.js")
69 |
70 | const player = await Player.create({
71 | clientToken: window.BANUBA_CLIENT_TOKEN,
72 | proxyVideoRequestsTo: isSafari ? "___range-requests___/" : null,
73 | useFutureInterpolate: false,
74 | locateFile: `${sdkUrl}@${SDK_VERSION}/dist`,
75 | });
76 |
77 | await Promise.all(
78 | modulesList.map((moduleId) => {
79 | return new Promise(async (resolve) => {
80 | try {
81 | const module = await Module.preload(
82 | `https://cdn.jsdelivr.net/npm/@banuba/webar@${SDK_VERSION}/dist/modules/${moduleId}.zip`
83 | );
84 | await player.addModule(module);
85 | } catch (error) {
86 | console.warn(`Load module ${moduleId} error: `, error);
87 | }
88 |
89 | return resolve();
90 | });
91 | })
92 | );
93 |
94 | const startFpsTracking = () => {
95 | player.addEventListener("framereceived", () => fpsCounter.cam++);
96 | player.addEventListener(
97 | "frameprocessed",
98 | ({ detail }) => (fpsCounter.processing = 1000 / detail.averagedDuration)
99 | );
100 | player.addEventListener("framerendered", () => fpsCounter.render++);
101 |
102 | setInterval(() => {
103 | fps.cam = fpsCounter.cam;
104 | fps.render = fpsCounter.render;
105 | fps.processing = fpsCounter.processing;
106 | fpsCounter.cam = 0;
107 | fpsCounter.render = 0;
108 | }, 1000);
109 | };
110 |
111 | let curResult;
112 | let analyseFunc;
113 | const renderAnalysisResultFuncs = {
114 | Detection_gestures: async (paramString, resultBlock) => {
115 | const res = await currentEffect.evalJs(paramString);
116 |
117 | if (!(curResult !== res && res !== undefined)) {
118 | return false;
119 | }
120 |
121 | curResult = res;
122 |
123 | const icon =
124 | res === "No Gesture"
125 | ? ""
126 | : ``;
127 |
128 | resultBlock.innerHTML = `${icon}${curResult}`;
129 | },
130 |
131 | heart_rate: async (paramString, resultBlock) => {
132 | const res = await currentEffect.evalJs(paramString);
133 | if (!(curResult !== res && res !== undefined)) {
134 | return false;
135 | }
136 |
137 | curResult = res;
138 |
139 | if (curResult.includes("calculation")) {
140 | resultBlock.classList.add("heart-rate__analyse");
141 | } else {
142 | resultBlock.classList.remove("heart-rate__analyse");
143 | }
144 |
145 | resultBlock.innerText = curResult;
146 |
147 | return true;
148 | },
149 |
150 | test_Ruler: async (paramString, resultBlock) => {
151 | const res = await currentEffect.evalJs(paramString);
152 | if (curResult !== res && res !== undefined) {
153 | curResult = res;
154 | resultBlock.innerText = curResult;
155 | }
156 | },
157 | };
158 |
159 | /**
160 | * __analyticsState can be "enabled" or "disabled"
161 | */
162 | const __analyticsActive = "active";
163 | const __analyticsInActive = "inactive";
164 | let _analyticsState = __analyticsInActive;
165 |
166 | export const startAnalysis = async (effectName, paramString, resultBlock) => {
167 | analyseFunc = () =>
168 | renderAnalysisResultFuncs[effectName.split(".")[0]](
169 | paramString,
170 | resultBlock
171 | );
172 | player.addEventListener("framedata", analyseFunc);
173 | _analyticsState = __analyticsActive;
174 | };
175 |
176 | export const stopAnalysis = () => {
177 | if (_analyticsState === __analyticsActive)
178 | player.removeEventListener("framedata", analyseFunc);
179 | _analyticsState = __analyticsInActive;
180 | };
181 |
182 | export const clearEffect = async () => {
183 | await player.clearEffect();
184 | };
185 |
186 | export const muteToggle = (value) => {
187 | player.setVolume(value);
188 | };
189 |
190 | export const getSource = (sourceType, file) => {
191 | return sourceType === "webcam" ? new Webcam() : new Image(file);
192 | };
193 |
194 | export const getPlayer = () => {
195 | return player;
196 | };
197 |
198 | export const startPlayer = (source) => {
199 | player.use(source);
200 | Dom.render(player, "#webar");
201 | startFpsTracking();
202 | };
203 |
204 | export const applyEffect = async (effectName) => {
205 | currentEffect = new Effect(effectName);
206 | await player.applyEffect(currentEffect);
207 | };
208 |
209 | export const applyEffectParam = async (paramString) => {
210 | await currentEffect.evalJs(paramString);
211 | };
212 |
213 | export const startGame = () => {
214 | currentEffect.evalJs("isButtonTouched").then((isButtonTouched) => {
215 | if (isButtonTouched === "false") {
216 | currentEffect.evalJs("onClick()");
217 | }
218 | });
219 | };
220 |
221 | export const getScreenshot = async () => {
222 | const capture = new ImageCapture(player);
223 | return await capture.takePhoto();
224 | };
225 |
226 | let recorder;
227 | const getRecorder = () => {
228 | if (recorder) return recorder;
229 |
230 | recorder = new VideoRecorder(player);
231 | return recorder;
232 | };
233 |
234 | export const startRecord = () => {
235 | getRecorder().start();
236 | };
237 |
238 | export const stopRecord = async () => {
239 | return await getRecorder().stop();
240 | };
241 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Banuba Limited
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Banuba SDK Web AR demo app
2 |
3 | ## Requirements
4 |
5 | - Banuba [client token](#obtaining-banuba-client-token)
6 | - [Nodejs](https://nodejs.org/en/) installed
7 | - Browser with support of [WebGL 2.0](https://caniuse.com/#feat=webgl2)
8 |
9 | ### Obtaining Banuba SDK Web AR
10 |
11 | The example uses CDN version of the [@banuba/webar](https://www.npmjs.com/package/@banuba/webar) npm package for simplicity.
12 | Please use the npm package mentioned above for real world projects.
13 | Check out the [Integration tutorials](https://docs.banuba.com/far-sdk/tutorials/development/basic_integration?platform=web) for more ways of consuming [@banuba/webar](https://www.npmjs.com/package/@banuba/webar) package.
14 |
15 | ### Obtaining Banuba Client token
16 |
17 | Banuba Client token is required to get Banuba SDK Web AR working.
18 |
19 | To receive a new **trial** client token please fill in the [form on banuba.com](https://www.banuba.com/face-filters-sdk) website, or contact us via [info@banuba.com](mailto:info@banuba.com).
20 |
21 | ## Environment setup and local run
22 |
23 | Clone the repository
24 |
25 | ```sh
26 | git clone git@github.com:Banuba/quickstart-web.git
27 | ```
28 |
29 | Insert Banuba [client token](#obtaining-banuba-client-token) into `BanubaClientToken.js`
30 |
31 | ```js
32 | window.BANUBA_CLIENT_TOKEN = "PUT YOUR CLIENT TOKEN HERE";
33 | ```
34 |
35 | Run the live server in the cloned folder
36 |
37 | ```sh
38 | npx live-server
39 | ```
40 |
41 | Open [localhost:8080](http://localhost:8080)
42 |
43 | ## Adding a new effect
44 |
45 | Put effect zip file to `import/` folder and add zip file name to `./import/effectsList.js` file.
46 | Example:
47 |
48 | ```js
49 | export const importedEffectsList = ["your_effect_1.zip", "your_effect_2.zip"];
50 | ```
51 |
52 | You can obtain more effects on the [Demo Face Filters](https://docs.banuba.com/far-sdk/tutorials/capabilities/demo_face_filters) page.
53 |
54 | ---
55 |
56 | Learn more about Banuba WebAR SDK on the [Web](https://docs.banuba.com/far-sdk/tutorials/development/basic_integration?platform=web) section of [docs.banuba.com](https://docs.banuba.com).
57 |
--------------------------------------------------------------------------------
/assets/effects/BG.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/BG.zip
--------------------------------------------------------------------------------
/assets/effects/ConfusedRabbit.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/ConfusedRabbit.zip
--------------------------------------------------------------------------------
/assets/effects/DebugFRX.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/DebugFRX.zip
--------------------------------------------------------------------------------
/assets/effects/Detection_gestures.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Detection_gestures.zip
--------------------------------------------------------------------------------
/assets/effects/Eye_lenses.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Eye_lenses.zip
--------------------------------------------------------------------------------
/assets/effects/Eye_lenses_Blue.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Eye_lenses_Blue.zip
--------------------------------------------------------------------------------
/assets/effects/Eye_lenses_Green.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Eye_lenses_Green.zip
--------------------------------------------------------------------------------
/assets/effects/EyesWitening_Toggle.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/EyesWitening_Toggle.zip
--------------------------------------------------------------------------------
/assets/effects/FG.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/FG.zip
--------------------------------------------------------------------------------
/assets/effects/FlappyPlane_mouth.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/FlappyPlane_mouth.zip
--------------------------------------------------------------------------------
/assets/effects/Full_Body.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Full_Body.zip
--------------------------------------------------------------------------------
/assets/effects/Gangster.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Gangster.zip
--------------------------------------------------------------------------------
/assets/effects/Hades.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Hades.zip
--------------------------------------------------------------------------------
/assets/effects/Hair.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Hair.zip
--------------------------------------------------------------------------------
/assets/effects/Lips.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Lips.zip
--------------------------------------------------------------------------------
/assets/effects/Low_look_clubs.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Low_look_clubs.zip
--------------------------------------------------------------------------------
/assets/effects/MinnieMouse7_multi.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/MinnieMouse7_multi.zip
--------------------------------------------------------------------------------
/assets/effects/Morphings_1.7.0.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Morphings_1.7.0.zip
--------------------------------------------------------------------------------
/assets/effects/Regular_blur.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Regular_blur.zip
--------------------------------------------------------------------------------
/assets/effects/Retrowave.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Retrowave.zip
--------------------------------------------------------------------------------
/assets/effects/Ring_01.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Ring_01.zip
--------------------------------------------------------------------------------
/assets/effects/Skin.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Skin.zip
--------------------------------------------------------------------------------
/assets/effects/SkinSoftening.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/SkinSoftening.zip
--------------------------------------------------------------------------------
/assets/effects/Spider2.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Spider2.zip
--------------------------------------------------------------------------------
/assets/effects/Sunset.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/Sunset.zip
--------------------------------------------------------------------------------
/assets/effects/TeethWitening_Toggle.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/TeethWitening_Toggle.zip
--------------------------------------------------------------------------------
/assets/effects/TrollGrandma.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/TrollGrandma.zip
--------------------------------------------------------------------------------
/assets/effects/VTO_Hair_blue.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/VTO_Hair_blue.zip
--------------------------------------------------------------------------------
/assets/effects/VTO_Hair_green.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/VTO_Hair_green.zip
--------------------------------------------------------------------------------
/assets/effects/VTO_Hair_strand.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/VTO_Hair_strand.zip
--------------------------------------------------------------------------------
/assets/effects/VTO_Headdresse_01.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/VTO_Headdresse_01.zip
--------------------------------------------------------------------------------
/assets/effects/What_Animal_Are_You.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/What_Animal_Are_You.zip
--------------------------------------------------------------------------------
/assets/effects/WhooshBeautyFemale.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/WhooshBeautyFemale.zip
--------------------------------------------------------------------------------
/assets/effects/dialect.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/dialect.zip
--------------------------------------------------------------------------------
/assets/effects/earrings_01.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/earrings_01.zip
--------------------------------------------------------------------------------
/assets/effects/glasses_RayBan4165_Dark.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/glasses_RayBan4165_Dark.zip
--------------------------------------------------------------------------------
/assets/effects/heart_rate.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/heart_rate.zip
--------------------------------------------------------------------------------
/assets/effects/necklace_01.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/necklace_01.zip
--------------------------------------------------------------------------------
/assets/effects/test_Ruler.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/test_Ruler.zip
--------------------------------------------------------------------------------
/assets/effects/video_BG_RainyCafe.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/effects/video_BG_RainyCafe.zip
--------------------------------------------------------------------------------
/assets/icons/controls/icon-arrow.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-record-active.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-record.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-reset.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-screenshot-active.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-screenshot.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-sound-active.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/controls/icon-sound.svg:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/assets/icons/effects/BG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/BG.png
--------------------------------------------------------------------------------
/assets/icons/effects/Eye_lenses_Blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/Eye_lenses_Blue.png
--------------------------------------------------------------------------------
/assets/icons/effects/Eye_lenses_Green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/Eye_lenses_Green.png
--------------------------------------------------------------------------------
/assets/icons/effects/FG.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/FG.png
--------------------------------------------------------------------------------
/assets/icons/effects/Glasses_Dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/Glasses_Dark.png
--------------------------------------------------------------------------------
/assets/icons/effects/Regular_blur.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/Regular_blur.png
--------------------------------------------------------------------------------
/assets/icons/effects/VTO_Hair_blue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/VTO_Hair_blue.png
--------------------------------------------------------------------------------
/assets/icons/effects/VTO_Hair_green.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/VTO_Hair_green.png
--------------------------------------------------------------------------------
/assets/icons/effects/VTO_Hair_strand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/VTO_Hair_strand.png
--------------------------------------------------------------------------------
/assets/icons/effects/WhooshBeautyFemale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/WhooshBeautyFemale.png
--------------------------------------------------------------------------------
/assets/icons/effects/dialect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/dialect.png
--------------------------------------------------------------------------------
/assets/icons/effects/earrings_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/earrings_01.png
--------------------------------------------------------------------------------
/assets/icons/effects/eyebrows_bend.svg:
--------------------------------------------------------------------------------
1 |
28 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyebrows_height.svg:
--------------------------------------------------------------------------------
1 |
25 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyebrows_spacing.svg:
--------------------------------------------------------------------------------
1 |
25 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_enlargement.svg:
--------------------------------------------------------------------------------
1 |
25 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_height.svg:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_lower_eyelid_pos.svg:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_lower_eyelid_size.svg:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_rounding.svg:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_spacing.svg:
--------------------------------------------------------------------------------
1 |
13 |
--------------------------------------------------------------------------------
/assets/icons/effects/eyes_squint.svg:
--------------------------------------------------------------------------------
1 |
19 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_cheekbones_narrowing.svg:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_cheeks_jaw_narrowing.svg:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_cheeks_narrowing.svg:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_chin_narrowing.svg:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_chin_shortening.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_jaw_narrowing.svg:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_narrowing.svg:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_sunken_cheeks.svg:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/assets/icons/effects/face_v_shape.svg:
--------------------------------------------------------------------------------
1 |
18 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_height.svg:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_mouth_size.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_shape.svg:
--------------------------------------------------------------------------------
1 |
10 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_size.svg:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_smile.svg:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/assets/icons/effects/lips_thickness.svg:
--------------------------------------------------------------------------------
1 |
11 |
--------------------------------------------------------------------------------
/assets/icons/effects/necklace_01.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/necklace_01.png
--------------------------------------------------------------------------------
/assets/icons/effects/nose_length.svg:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/assets/icons/effects/nose_tip_width.svg:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/assets/icons/effects/nose_width.svg:
--------------------------------------------------------------------------------
1 |
12 |
--------------------------------------------------------------------------------
/assets/icons/effects/video_BG_RainyCafe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Banuba/quickstart-web/a26f113f849657114dd1d5ced4b05ee39919a085/assets/icons/effects/video_BG_RainyCafe.png
--------------------------------------------------------------------------------
/effectsConfig.js:
--------------------------------------------------------------------------------
1 | export const effectsList = {
2 | ar_games: {
3 | label: "AR Games",
4 | categories: {
5 | flappy_plane: {
6 | label: "Flappy Plane",
7 | effects: [{ name: "FlappyPlane_mouth.zip" }],
8 | },
9 | what_animal_are_you: {
10 | label: "What Animal Are You",
11 | effects: [{ name: "What_Animal_Are_You.zip", control: "game" }],
12 | },
13 | },
14 | },
15 |
16 | ar_videocall: {
17 | label: "AR VideoCall",
18 | categories: {
19 | background_separation: {
20 | label: "Background separation",
21 | effects: [
22 | { name: "Regular_blur.zip", icon: "Regular_blur.png" },
23 | { name: "video_BG_RainyCafe.zip", icon: "video_BG_RainyCafe.png" },
24 | ],
25 | },
26 | beauty_filter: {
27 | label: "Beauty Filter",
28 | effects: [
29 | { name: "dialect.zip", icon: "dialect.png" },
30 | { name: "WhooshBeautyFemale.zip", icon: "WhooshBeautyFemale.png" },
31 | ],
32 | },
33 | lightning_color_correction: {
34 | label: "Lightning and Color correction",
35 | effects: [{ name: "Sunset.zip" }],
36 | },
37 | },
38 | },
39 |
40 | avatar: {
41 | label: "Avatar",
42 | categories: {
43 | hades: {
44 | label: "Hades",
45 | effects: [{ name: "Hades.zip" }],
46 | },
47 | },
48 | },
49 |
50 | beauty_touch_up: {
51 | label: "Beauty Touch UP",
52 | categories: {
53 | facemorphing: {
54 | label: "Face morphing",
55 | effects: [
56 | {
57 | name: "Morphings_1.7.0.zip",
58 | control: "slider",
59 | params: ["FaceMorph.face"],
60 | arg: "narrowing",
61 | direction: 1,
62 | icon: "face_narrowing.svg",
63 | },
64 | {
65 | name: "Morphings_1.7.0.zip",
66 | control: "slider",
67 | params: ["FaceMorph.face"],
68 | arg: "v_shape",
69 | direction: 1,
70 | icon: "face_v_shape.svg",
71 | },
72 | {
73 | name: "Morphings_1.7.0.zip",
74 | control: "slider",
75 | params: ["FaceMorph.face"],
76 | arg: "cheekbones_narrowing",
77 | direction: 1,
78 | icon: "face_cheekbones_narrowing.svg",
79 | },
80 | {
81 | name: "Morphings_1.7.0.zip",
82 | control: "slider",
83 | params: ["FaceMorph.face"],
84 | arg: "cheeks_narrowing",
85 | direction: 1,
86 | icon: "face_cheeks_narrowing.svg",
87 | },
88 | {
89 | name: "Morphings_1.7.0.zip",
90 | control: "slider",
91 | params: ["FaceMorph.face"],
92 | arg: "jaw_narrowing",
93 | direction: 1,
94 | icon: "face_jaw_narrowing.svg",
95 | },
96 | {
97 | name: "Morphings_1.7.0.zip",
98 | control: "slider",
99 | params: ["FaceMorph.face"],
100 | arg: "chin_shortening",
101 | direction: 1,
102 | icon: "face_chin_shortening.svg",
103 | },
104 | {
105 | name: "Morphings_1.7.0.zip",
106 | control: "slider",
107 | params: ["FaceMorph.face"],
108 | arg: "chin_narrowing",
109 | direction: 1,
110 | icon: "face_chin_narrowing.svg",
111 | },
112 | {
113 | name: "Morphings_1.7.0.zip",
114 | control: "slider",
115 | params: ["FaceMorph.face"],
116 | arg: "sunken_cheeks",
117 | minValue: "0",
118 | direction: 1,
119 | icon: "face_sunken_cheeks.svg",
120 | },
121 | {
122 | name: "Morphings_1.7.0.zip",
123 | control: "slider",
124 | params: ["FaceMorph.face"],
125 | arg: "cheeks_jaw_narrowing",
126 | direction: 1,
127 | icon: "face_cheeks_jaw_narrowing.svg",
128 | },
129 | ],
130 | },
131 | nose: {
132 | label: "Nose",
133 | effects: [
134 | {
135 | name: "Morphings_1.7.0.zip",
136 | control: "slider",
137 | params: ["FaceMorph.nose"],
138 | arg: "width",
139 | direction: 1,
140 | icon: "nose_width.svg",
141 | },
142 | {
143 | name: "Morphings_1.7.0.zip",
144 | control: "slider",
145 | params: ["FaceMorph.nose"],
146 | arg: "length",
147 | direction: 1,
148 | icon: "nose_length.svg",
149 | },
150 | {
151 | name: "Morphings_1.7.0.zip",
152 | control: "slider",
153 | params: ["FaceMorph.nose"],
154 | arg: "tip_width",
155 | direction: -1,
156 | icon: "nose_tip_width.svg",
157 | },
158 | ],
159 | },
160 | eyes: {
161 | label: "Eyes",
162 | effects: [
163 | {
164 | name: "Morphings_1.7.0.zip",
165 | control: "slider",
166 | params: ["FaceMorph.eyes"],
167 | arg: "rounding",
168 | minValue: "0",
169 | direction: 1,
170 | icon: "eyes_rounding.svg",
171 | },
172 | {
173 | name: "Morphings_1.7.0.zip",
174 | control: "slider",
175 | params: ["FaceMorph.eyes"],
176 | arg: "enlargement",
177 | direction: 1,
178 | icon: "eyes_enlargement.svg",
179 | },
180 | {
181 | name: "Morphings_1.7.0.zip",
182 | control: "slider",
183 | params: ["FaceMorph.eyes"],
184 | arg: "height",
185 | direction: 1,
186 | icon: "eyes_height.svg",
187 | },
188 | {
189 | name: "Morphings_1.7.0.zip",
190 | control: "slider",
191 | params: ["FaceMorph.eyes"],
192 | arg: "spacing",
193 | direction: 1,
194 | icon: "eyes_spacing.svg",
195 | },
196 | {
197 | name: "Morphings_1.7.0.zip",
198 | control: "slider",
199 | params: ["FaceMorph.eyes"],
200 | arg: "squint",
201 | direction: -1,
202 | icon: "eyes_squint.svg",
203 | },
204 | {
205 | name: "Morphings_1.7.0.zip",
206 | control: "slider",
207 | params: ["FaceMorph.eyes"],
208 | arg: "lower_eyelid_pos",
209 | direction: 1,
210 | icon: "eyes_lower_eyelid_pos.svg",
211 | },
212 | {
213 | name: "Morphings_1.7.0.zip",
214 | control: "slider",
215 | params: ["FaceMorph.eyes"],
216 | arg: "lower_eyelid_size",
217 | direction: -1,
218 | icon: "eyes_lower_eyelid_size.svg",
219 | },
220 | ],
221 | },
222 | eyebrows: {
223 | label: "Eyebrows",
224 | effects: [
225 | {
226 | name: "Morphings_1.7.0.zip",
227 | control: "slider",
228 | params: ["FaceMorph.eyebrows"],
229 | arg: "spacing",
230 | direction: -1,
231 | icon: "eyebrows_spacing.svg",
232 | },
233 | {
234 | name: "Morphings_1.7.0.zip",
235 | control: "slider",
236 | params: ["FaceMorph.eyebrows"],
237 | arg: "height",
238 | direction: -1,
239 | icon: "eyebrows_height.svg",
240 | },
241 | {
242 | name: "Morphings_1.7.0.zip",
243 | control: "slider",
244 | params: ["FaceMorph.eyebrows"],
245 | arg: "bend",
246 | direction: 1,
247 | icon: "eyebrows_bend.svg",
248 | },
249 | ],
250 | },
251 | lips: {
252 | label: "Lips",
253 | effects: [
254 | {
255 | name: "Morphings_1.7.0.zip",
256 | control: "slider",
257 | params: ["FaceMorph.lips"],
258 | direction: 1,
259 | arg: "size",
260 | icon: "lips_size.svg",
261 | },
262 | {
263 | name: "Morphings_1.7.0.zip",
264 | control: "slider",
265 | params: ["FaceMorph.lips"],
266 | direction: 1,
267 | arg: "height",
268 | icon: "lips_height.svg",
269 | },
270 | {
271 | name: "Morphings_1.7.0.zip",
272 | control: "slider",
273 | params: ["FaceMorph.lips"],
274 | direction: 1,
275 | arg: "thickness",
276 | icon: "lips_thickness.svg",
277 | },
278 | {
279 | name: "Morphings_1.7.0.zip",
280 | control: "slider",
281 | params: ["FaceMorph.lips"],
282 | direction: -1,
283 | arg: "mouth_size",
284 | icon: "lips_mouth_size.svg",
285 | },
286 | {
287 | name: "Morphings_1.7.0.zip",
288 | control: "slider",
289 | params: ["FaceMorph.lips"],
290 | direction: 1,
291 | minValue: "0",
292 | arg: "smile",
293 | icon: "lips_smile.svg",
294 | },
295 | {
296 | name: "Morphings_1.7.0.zip",
297 | control: "slider",
298 | params: ["FaceMorph.lips"],
299 | direction: -1,
300 | arg: "shape",
301 | icon: "lips_shape.svg",
302 | },
303 | ],
304 | },
305 | skin: {
306 | label: "Skin",
307 | effects: [
308 | {
309 | name: "SkinSoftening.zip",
310 | control: "slider",
311 | params: ["Skin.softening"],
312 | minValue: 0,
313 | direction: 1,
314 | },
315 | ],
316 | },
317 | eye_whitening: {
318 | label: "Eye Whitening",
319 | effects: [
320 | {
321 | name: "EyesWitening_Toggle.zip",
322 | control: "toggle",
323 | params: ["onDataUpdate"],
324 | },
325 | ],
326 | },
327 | tooth_whitening: {
328 | label: "Tooth Whitening",
329 | effects: [
330 | {
331 | name: "TeethWitening_Toggle.zip",
332 | control: "toggle",
333 | params: ["onDataUpdate"],
334 | },
335 | ],
336 | },
337 | },
338 | },
339 |
340 | face_tracking: {
341 | label: "Face Tracking",
342 | categories: {
343 | background_foreground: {
344 | label: "Background/Foreground",
345 | effects: [
346 | { name: "BG.zip", icon: "BG.png" },
347 | { name: "FG.zip", icon: "FG.png" },
348 | ],
349 | },
350 | body_segmentation: {
351 | label: "Body segmentation",
352 | effects: [{ name: "Full_Body.zip" }],
353 | },
354 | distance_to_phone: {
355 | label: "Distance to camera",
356 | effects: [
357 | {
358 | name: "test_Ruler.zip",
359 | control: "analyze",
360 | params: ["onDataUpdate()"],
361 | },
362 | ],
363 | },
364 | eye_segmentation: {
365 | label: "Eye segmentation",
366 | effects: [{ name: "Eye_lenses.zip" }],
367 | },
368 | hair_segmentation: {
369 | label: "Hair segmentation",
370 | effects: [{ name: "Hair.zip" }],
371 | },
372 | landmarks: {
373 | label: "Landmarks",
374 | effects: [{ name: "DebugFRX.zip" }],
375 | },
376 | lips_segmentation: {
377 | label: "Lips segmentation",
378 | effects: [{ name: "Lips.zip" }],
379 | },
380 | skin_segmentation: {
381 | label: "Skin Segmentation",
382 | effects: [{ name: "Skin.zip" }],
383 | },
384 | analytics: {
385 | label: "Analytics",
386 | effects: [
387 | {
388 | name: "heart_rate.zip",
389 | control: "analyze",
390 | params: ["onDataUpdate()"],
391 | },
392 | ],
393 | },
394 | },
395 | },
396 |
397 | face_masks: {
398 | label: "Face Masks",
399 | categories: {
400 | animation: {
401 | label: "Animation",
402 | effects: [{ name: "Spider2.zip" }],
403 | },
404 | foreground_effects: {
405 | label: "Foreground effects",
406 | effects: [{ name: "Retrowave.zip" }],
407 | },
408 | masks_morphing: {
409 | label: "Masks with Morphing",
410 | effects: [{ name: "TrollGrandma.zip" }],
411 | },
412 | multiple_face_detection: {
413 | label: "Multiple Face Detection",
414 | effects: [{ name: "MinnieMouse7_multi.zip" }],
415 | },
416 | physics: {
417 | label: "Physics",
418 | effects: [{ name: "ConfusedRabbit.zip" }],
419 | },
420 | triggers: {
421 | label: "Triggers",
422 | effects: [
423 | {
424 | name: "Gangster.zip",
425 | control: "trigger",
426 | params: ["GetMouthStatus()"],
427 | tip: "Open your mouth",
428 | icon: "Gangster.svg",
429 | },
430 | ],
431 | },
432 | },
433 | },
434 |
435 | hand_tracking: {
436 | label: "Hand Tracking",
437 | categories: {
438 | gestures_detection: {
439 | label: "Gestures Detection",
440 | effects: [
441 | {
442 | name: "Detection_gestures.zip",
443 | control: "analyze",
444 | params: ["getGesture()"],
445 | },
446 | ],
447 | },
448 | rings_try_on: {
449 | label: "Rings try on",
450 | effects: [{ name: "Ring_01.zip" }],
451 | },
452 | },
453 | },
454 |
455 | virtual_try_on: {
456 | label: "Virtual Try On",
457 | categories: {
458 | glasses_try_on: {
459 | label: "Glasses Try On",
460 | effects: [
461 | { name: "Eye_lenses_Blue.zip", icon: "Eye_lenses_Blue.png" },
462 | { name: "Eye_lenses_Green.zip", icon: "Eye_lenses_Green.png" },
463 | { name: "glasses_RayBan4165_Dark.zip", icon: "Glasses_Dark.png" },
464 | ],
465 | },
466 | hair: {
467 | label: "Hair Coloring",
468 | effects: [
469 | { name: "VTO_Hair_blue.zip", icon: "VTO_Hair_blue.png" },
470 | { name: "VTO_Hair_green.zip", icon: "VTO_Hair_green.png" },
471 | { name: "VTO_Hair_strand.zip", icon: "VTO_Hair_strand.png" },
472 | ],
473 | },
474 | head_wearings: {
475 | label: "Head wearings",
476 | effects: [{ name: "VTO_Headdresse_01.zip" }],
477 | },
478 | jewelry: {
479 | label: "Jewelry",
480 | effects: [
481 | { name: "earrings_01.zip", icon: "earrings_01.png" },
482 | { name: "necklace_01.zip", icon: "necklace_01.png" },
483 | ],
484 | },
485 | makeup: {
486 | label: "Makeup",
487 | effects: [{ name: "Low_look_clubs.zip" }],
488 | },
489 | },
490 | },
491 |
492 | import: {
493 | label: "Imported",
494 | effects: [],
495 | },
496 | };
497 |
--------------------------------------------------------------------------------
/import/effectsList.js:
--------------------------------------------------------------------------------
1 | export const importedEffectsList = [
2 | // Place your effect zip-file to import folder and add here zip-file name. Example:
3 | //'your_effect_1.zip',
4 | // 'your_effect_2.zip'
5 | ];
6 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |