{"repo":"mrousavy/FaceBlurApp","free":true,"listed":false,"github":"https://github.com/mrousavy/FaceBlurApp","clone":"git clone https://github.com/mrousavy/FaceBlurApp.git","description":"An app that blurs faces in realtime using VisionCamera, Skia and MLKit 😷","language":"TypeScript","stars":180,"topics":["app","blur","camera","detection","face","face-blur","face-filter","filter","react-native","react-native-skia"],"license":null,"category":"mobile-apps","readme_excerpt":"Face Blur App This is an app to demonstrate the use of VisionCamera to build a realtime face blurring application. 😷 https://github.com/mrousavy/FaceBlurApp/assets/15199031/cb2fd119-9dad-4e8a-9a97-579bb2eae888 It took me 25 minutes to build the app, and this runs on both iOS and Android at 60-120 FPS. I can swap out the drawing algorithm, plug in a different shader, use a different ML model like pose-, object- or hand-detection, and change Camera properties within seconds to minutes - it has never been so easy to build Camera apps, all thanks to react-native-vision-camera! 🚀 How? FaceBlurApp uses react-native-vision-camera to display a Camera feed. Using the VisionCamera Frame Processors API and the react-native-vision-camera-face-detector Frame Processor plugin, we can detect faces in realtime at 60-120 FPS. Then, we can draw a blur shader/mask over the detected faces by using the VisionCamera Skia Frame Processors integration. In this case, a simple blur ImageFilter from react-native-skia is used. This is the relevant code: See App.tsx for the full code. How's the Performance? If you know me you know that my libs are always really fast. This is no exception: - Frame Processors are built almost entirely with C++ to run Frame analysis with almost zero overhead. - Frame Processors run in Worklets on a separate Thread, so they are not interrupted by JS lags. - The MLKit models are built with native code and use GPU-acceleration - VisionCamera can provide either yuv or efficie","default_branch":null,"files":null,"tree":[],"storefront":"/r/mrousavy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mrousavy/FaceBlurApp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}