https://github.com/simonbs/sbsanimojirecording
🐨 Proof of concept showing how to overlay an Animoji on top of a camera feed using ARKit
https://github.com/simonbs/sbsanimojirecording
Last synced: about 1 year ago
JSON representation
🐨 Proof of concept showing how to overlay an Animoji on top of a camera feed using ARKit
- Host: GitHub
- URL: https://github.com/simonbs/sbsanimojirecording
- Owner: simonbs
- Created: 2018-12-15T23:33:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-03T11:53:51.000Z (over 7 years ago)
- Last Synced: 2025-05-08T03:49:11.094Z (about 1 year ago)
- Language: Objective-C
- Size: 56.6 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SBSAnimojiRecording
Shows how Apples Animojis can be overlayed on a camera feed using ARKit. **NB: This is achieved in a hacky way.**
Videos are recorded using ReplayKit.
Tested on iPhone X and iPhone XS Max.
# Usage
- Clone the repository and run the app on a device that supports Animojis.
- To change the Animoji, you need to change the puppet name in [this line of code](https://github.com/simonbs/SBSAnimojiRecording/blob/master/SBSAnimojiRecording/Source/CameraViewController.m#L26). Supported puppet names are koala, monkey, dog, etc.
# Caveats
- It's super hacky.
- It relies on [magic numbers](https://github.com/simonbs/SBSAnimojiRecording/blob/master/SBSAnimojiRecording/Source/CameraViewController.m#L58-L68) for positioning the Animoji.
- It uses ugly [device checks](https://github.com/simonbs/SBSAnimojiRecording/blob/master/SBSAnimojiRecording/Source/CameraViewController.m#L58-L68).
- It's glitching when showing some Animojis.
# Notice
This project relies heavily on Apples private API and you should therefore not try to submit this code to App Store.