Docs / Overview
Overview
What Facevity is, which platforms it runs on, how it fits into a camera or video-call pipeline, and where to start.
Facevity is a real-time face beauty SDK for Android, iOS, Web, Flutter and React Native. It takes camera frames, finds faces, and returns the same frames with skin smoothing, skin-only tone and brightness, retouch extras, lipstick, teeth whitening, backlight compensation, light reshaping, colour filters and AR accessories applied. All processing happens on the device or in the browser: faces are tracked with MediaPipe Face Landmarker and every effect is a GPU shader.
Every platform uses the same shaders, slider curves, presets, lipstick shades, filters, accessories and licence format, so a look tuned on one platform renders the same on the others.
Platforms
| Platform | Package | Version | Runs on | Engine |
|---|---|---|---|---|
| Android | com.knight98:facevity |
0.3.3 | Android 7.0 (API 24) | OpenGL ES |
| iOS | pod Facevity, SPM |
0.4.0-alpha | iOS 15 | Metal |
| Web | @facevity/web |
0.4.0-alpha | Chrome and Edge 94, Safari 16.4, Firefox 115 | WebGL2 |
| Flutter | facevity_flutter |
0.4.0-alpha | Flutter 3.22 on Android 7.0 and iOS 15 | native Android and iOS SDKs |
| React Native | react-native-facevity |
0.4.0-alpha | React Native 0.74 on Android 7.0 and iOS 15 | native Android and iOS SDKs |
The Flutter plugin and the React Native module wrap the native Android and iOS SDKs. Frames never cross the platform channel or the bridge: they are processed natively, either in the plugin’s camera view or inside the RTC SDK’s own capture pipeline. Dart and JavaScript only send settings.
Video-call SDKs
Each platform has an integration guide for the four common real-time video stacks. Remote participants receive the beautified video, not just the local preview.
| Agora | ZEGOCLOUD | LiveKit | WebRTC | |
|---|---|---|---|---|
| Android | guide | guide | guide | guide |
| iOS | guide | guide | guide | guide |
| Web | guide | guide | guide | guide |
| Flutter | guide | guide | guide | flutter_webrtc |
| React Native | guide | guide | guide | guide |
How video calls work explains where Facevity sits in a call and the rules every hook follows.
How it works
- Frames in. Your app hands Facevity each camera frame: an OpenGL texture or NV21 / NV12 / I420 buffer on Android, a
CVPixelBuffer, Metal texture or YUV bytes on iOS, aMediaStreamTrack,VideoFrame,<video>or canvas on the web. - Face tracking. A downscaled copy goes to the MediaPipe Face Landmarker. Its 478 landmarks (with iris points, head pose and expression blendshapes) are smoothed over time; on Android and iOS they are carried between detections with optical flow, so detection never limits the frame rate.
- Masks. Skin, under-eye, smile-line, lip, teeth, eye, beard and hair regions are drawn from the face mesh and feathered. Where the GPU runs it, a segmentation model (skin, hair, clothes, background) refines them to the pixel. The lipstick region is computed from the current frame’s lip contours, so it follows the mouth while the user speaks.
- Effects. Smoothing, tone and makeup run inside those masks on the GPU; pixels outside the face are left exactly as they were. Accessories are drawn last, anchored to the face.
- Frames out. The processed frame goes back to your preview, encoder or RTC SDK.
Two API styles
Facevity: a compact API withinitialize,setParams, the frame calls andrelease. It is the same on every platform, spelled for each language. Recommended for new integrations.FVRenderKit: follows the call flow of FaceUnity’s beauty module (setup,loadAIProcessor,faceBeauty,renderWithInput) for teams migrating existing code. Available on Android, iOS and Web.
Both use the same engine and produce the same output. See the API reference for the names on each platform.
Demo apps
Each platform has a demo app on GitHub with a licence screen, camera beauty with every effect, and a call screen per RTC SDK:
- facevity-android-demo
- facevity-ios-demo
- facevity-web-demo
- facevity-flutter-demo
- facevity-react-native-demo
The demos contain no SDK code. The SDK packages and a trial licence come with your trial.
Where to go next
- A quick start for Android, iOS, Web, Flutter or React Native.
- API reference: the same calls on every platform, side by side.
- Licensing: trial and production licences, app ID and domain binding, offline licence files.
- Migrating from FaceUnity: a step-by-step mapping.
- FAQ: performance, privacy, limitations.
Need help with an integration? Contact the Facevity team. We answer integration questions during trials.