@applooma/beauty-web
v0.1.1
Published
Looma Beauty Camera for the Web: free real-time beauty, make-up, filters, face masks and virtual backgrounds for AppLooma RTC
Maintainers
Readme
@applooma/beauty-web
Looma Beauty Camera for the Web: free real-time skin smoothing, make-up, filters, face reshape, face masks and virtual backgrounds for AppLooma RTC.
npm install @applooma/beauty-web @applooma/rtc-webimport { AppBeauty, AppBeautyPanel } from '@applooma/beauty-web';
const beauty = await AppBeauty.create(); // Smart Beauty is on by default
await engine.setVideoProcessor(beauty); // what viewers receive
beauty.setPreset('NATURAL'); // or beauty.setItem('SMOOTH', 0.7)
AppBeautyPanel.show(beauty); // AppBeautyPanel.showMagic(beauty) for masks / backgroundsA pre-join preview without connecting: const stop = await beauty.preview(videoElement).
Masks: beauty.mask = 'kitty'. Backgrounds: beauty.background = 'BLUR', a scene id, or
beauty.setCustomBackground(imageBitmap). The full list is in AppBeauty.catalog.
Face tracking and segmentation files load from https://assets.applooma.dev/beauty/web/mp/;
pass AppBeauty.create({ assetBase }) to self-host them.
Licence: see LICENSE (free for apps built on AppLooma RTC).
