All Projects β†’ Tofull β†’ faas_facebox

Tofull / faas_facebox

Licence: other
OpenFaaS anonymize function. Use MachineBox service.

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to faas facebox

pigo-openfaas-faceblur
OpenFaaS faceblur function using the Pigo face detector library. (https://github.com/esimov/pigo)
Stars: ✭ 15 (-57.14%)
Mutual labels:  face-detection, openfaas
ComputerVision-Essentials
Computer Vision Essentials in Python Programming Language πŸŽ‰
Stars: ✭ 28 (-20%)
Mutual labels:  face-detection
obs-face-tracker
Face tracking plugin for OBS Studio
Stars: ✭ 185 (+428.57%)
Mutual labels:  face-detection
brfv4 android examples
Android Studio project (Java)
Stars: ✭ 43 (+22.86%)
Mutual labels:  face-detection
FaceLivenessDetection-SDK
3D Passive Face Liveness Detection (Anti-Spoofing) & Deepfake detection. A single image is needed to compute liveness score. 99,67% accuracy on our dataset and perfect scores on multiple public datasets (NUAA, CASIA FASD, MSU...).
Stars: ✭ 85 (+142.86%)
Mutual labels:  face-detection
leaderboard-app
GitHub leaderboard for your organisation or repo (Serverless SPA)
Stars: ✭ 64 (+82.86%)
Mutual labels:  openfaas
Facial-Recognition-Using-FaceNet-Siamese-One-Shot-Learning
Implementation of Facial Recognition System Using Facenet based on One Shot Learning Using Siamese Networks
Stars: ✭ 104 (+197.14%)
Mutual labels:  face-detection
Polaris
Polaris is a Face recognition attendance system .
Stars: ✭ 211 (+502.86%)
Mutual labels:  face-detection
face-mask-detection-tf2
A face mask detection using ssd with simplified Mobilenet and RFB or Pelee in Tensorflow 2.1. Training on your own dataset. Can be converted to kmodel and run on the edge device of k210
Stars: ✭ 72 (+105.71%)
Mutual labels:  face-detection
FaceFilter
Snapchat and Instagram like Face Filter.
Stars: ✭ 72 (+105.71%)
Mutual labels:  face-detection
aio-rek
Face recognition based attendance system
Stars: ✭ 19 (-45.71%)
Mutual labels:  face-detection
InsightFace-REST
InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.
Stars: ✭ 308 (+780%)
Mutual labels:  face-detection
deepstack-ui
UI for working with Deepstack
Stars: ✭ 115 (+228.57%)
Mutual labels:  face-detection
SensorsAndAi
SensorAndAi is an android application which will give you the complete information about all the sensors and some basic information about artificial intelligence.This application will tell you about the use and implementation of the sensor and artificial intelligence.This app will show you how sensor and artificial intelligence is used in any an…
Stars: ✭ 29 (-17.14%)
Mutual labels:  face-detection
Arduino-OpenCV-Human-Follower
Face detector and follower using Arduino and OpenCV in Python
Stars: ✭ 30 (-14.29%)
Mutual labels:  face-detection
timeline
Timeline - A photo organizer
Stars: ✭ 39 (+11.43%)
Mutual labels:  face-detection
fer
Facial Expression Recognition
Stars: ✭ 32 (-8.57%)
Mutual labels:  face-detection
image processing
image-processing exercises.
Stars: ✭ 25 (-28.57%)
Mutual labels:  face-detection
visage
Add virtual makeup to picture of a face.
Stars: ✭ 97 (+177.14%)
Mutual labels:  face-detection
openfaas-plus-webassembly
WebAssembly + OpenfaaS The Universal Runtime for Serverless Functions
Stars: ✭ 40 (+14.29%)
Mutual labels:  openfaas

OpenFaaS function : faceBox from MachineBox GitHub stars

Twitter URL Github URL

This repository provides an OpenFaaS function to remove faces on pictures thanks to online machine learning service called MachineBox.

Input Output Output with blur effect
my profile picture who is this ? who is this ?

Technical instructions

Installation

  1. You need the OpenFaas CLI to build and deploy the function. So, first of all, you need to download it.

    curl -sL https://cli.openfaas.com | sudo sh

  2. This function is based on a MachineBox service called FaceBox. You can host your own facebox server with docker run -p 8081:8080 -e "MB_KEY=${MB_KEY}" machinebox/facebox. No worry, I already added this service for you in the OpenFaaS stack πŸ‘ .

    By the way, you still have to get your own MachineBox key. Just sign in on MachineBox.

  3. Set your MachineBox key as environment variable :

    MB_KEY="ThIsIsThEKeYiGeTfRoMhTtPs://mAcHiNeBoX.Io/aCcOuNt"

  4. Init your docker swarm cluster :

    docker swarm init

  5. Deploy the OpenFaaS stack (embedded machinebox service on port 8081) :

    MB_KEY=${MB_KEY} docker stack deploy func --compose-file docker-compose.yml

  6. Build the anonymizer function :

    ./build_all.sh

  7. Deploy the function on OpenFaaS :

    faas-cli deploy -f func_facebox.yml

Anonymize your pictures !

I arbitrary chose this picture for the test (first Google Images item for keyword people):

people

Via the OpenFaaS UI :

  1. On you browser (http://localhost:8080), you should get something like : deployed openfaas stack

  2. Select the Download option and paste your image URL : ui_function_invoke

  3. Press Invoke button! Your anonymized picture is downloading.

  4. Open your anonymized picture with your favorite image viewer ! That rocks !

example_anonymized_people

Via the OpenFaaS API :

Because OpenFaaS provides a REST API, you can invoke this function programmatically :

URL="http://epilepsyu.com/wp-content/uploads/2014/01/happy-people-1050x600.jpg"
curl http://localhost:8080/function/anonymize -d "${URL}" > example_anonymized_people_curl.jpg

Cleanup :

docker stack rm func
docker swarm leave --force

Options :

Use another FaceBox server url

If you want to use another FaceBox server url, simply change the facebox environment variable in file func_facebox.yml to fit with yours.

functions:
  anonymize:
    lang: Dockerfile
    handler: ./faas_anonymizer
    image: functions/faas_anonymizer:latest
    environment:
      facebox: https://myFaceBoxServer

Apply effect on face

Remove faces is too much for you ? Why not just blur the people ? Just set the environment effect to blur, or simply use the blur function I added for you.

functions:
  blur:
    lang: Dockerfile
    handler: ./faas_blur
    image: functions/faas_blur:latest
    environment:
      facebox: http://localhost:8081
      effect: blur

Motivation

This challenge was given on Twitter :

motivation

The function source code is strongly inspired from this MachineBox blog post.

Details

For more details about Machine Box.

For more details about OpenFaaS.

Give this repository a star (because it's my first golang function hack) : GitHub stars

Follow my activities : Twitter URL Github URL Blog URL

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].