Giter VIP home page Giter VIP logo

pigo-openfaas-faceblur's Introduction

OpenFaaS Faceblur Function

This is an OpenFaaS function to blur the detected faces using the Pigo face detection library.

Usage

To run the function locally you have to make sure OpenFaaS is up and running. Read the official documentation for more help. https://docs.openfaas.com/

Clone the repository:

$ git clone https://github.com/esimov/pigo-openfaas-faceblur

Build

$ faas-cli build -f stack.yml --gateway=http://<GATEWAY-IP>

Deploy

$ faas-cli deploy -f stack.yml --gateway=http://<GATEWAY-IP>

You can access the UI on the url provided to --gateway.

openfaas

Result

After deploying the OpenFaaS function pigo-faceblur will show up in the function list. You have to provide an image URL then hit invoke. This will return an image with the detected face regions blured out.

License

Copyright © 2019 Endre Simo

This project is under the MIT License. See the LICENSE file for the full license text.

pigo-openfaas-faceblur's People

Contributors

alexellis avatar esimov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pigo-openfaas-faceblur's Issues

Configurable blur level?

Hi,

Could we tweak the face-detection level and / or the blur level?

Some of the examples I ran show the face very clearly afterwards.

export IMG=https://pbs.twimg.com/media/D7Z0ew_UwAE922w.jpg

time curl -SLs https://teamserverless.o6s.io/pigo-faceblur \
   --data-binary $IMG > img1.jpg

export IMG=https://pbs.twimg.com/media/D7LecYgXsAI6boC.jpg


time curl -SLs https://teamserverless.o6s.io/pigo-faceblur \
   --data-binary $IMG > img2.jpg

export IMG=https://pbs.twimg.com/media/D7LC5hsXoAU_qF9.jpg 
time curl -SLs https://teamserverless.o6s.io/pigo-faceblur --data-binary $IMG > img3.jpg

Alex

Can't find facefinder

Started the openfaas lambda from the gateway UI and giving it a valid JPG url.

Got the following error:

Error on face detection: open ./data/facefinder: no such file or directory

Using openfaas: 11.1.3
Helm chart: openfaas-14.1.7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.