Simple flask/ react webapp that can be run fully locally for replacing all faces in images and video

https://preview.redd.it/9bgor8cikix51.png?width=222&format=png&auto=webp&s=f9041d272cc8c2944af4f1e1dbce51a6dcb759aa

[https://www.github.com/seanquinn781/face-replace](https://www.github.com/seanquinn781/face-replace)

The Python facial recognition libraries Centerface & Deface are used for anti-facial recognition and ImageIO for image processing. Originally adapted from the deface module from CLI format to a simple flask web app. Uses react for front end file uploading, api calls, and rendering processed media after making replacements.

[FaceReplace Video with emoji replacement for Home Alone 2 ](https://i.redd.it/lqrbw5hvkix51.gif)

[Facereplace emoji replacement on a crowd image](https://preview.redd.it/49033yv3lix51.jpg?width=1000&format=pjpg&auto=webp&s=870dc4daef22accb413f0b390b132fa99c759a27)

[FaceReplace with box replacement](https://preview.redd.it/srler649lix51.jpg?width=968&format=pjpg&auto=webp&s=6fc88851193dadcb5794efd9cc9a291adb5436d0)

[FaceReplace with blur replacements on crowd image](https://preview.redd.it/qfn1bmkdlix51.jpg?width=968&format=pjpg&auto=webp&s=e274ecd496362c44415979b23306ae23f149194d)

**Backend:**

Image and video replacement/ anonymization with emojis, boxes, or blurBuilt with flask

Works fully offline after initial installation

Local proxy: flask session and flask\_cors to process requests from frontend

**Frontend:**

React Form for uploading files and rendering image / video output after processing

Material UI

Proxy: setupProxy.js and package.json "proxy" port 5000

http-proxy-middleware

Leave a Comment