Giter Site home page Giter Site logo

pyjudger's Introduction

PyJudger

Falcon based REST API that main function is to analyze quality of face on given image.

Run Locally

PyJudger is docker based service, therefore all you got to do is build docker image and run docker-compose

Build docker:  
$ docker-compose build

Start server :
$ docker-compose up

by default it is running on 0.0.0.0:8313

Black

Project is formatted with Black

docker-compose run core sh -c "black core/*"

Available Endpoints

Sample body can be found in code/tests/filter_input.json

To generalize usage body requires only one attribute

{
  url: "www.someimagehosting.com/faceimage.jpg"
}

Sample images I have no rights to:

Blurry: https://i.ibb.co/b6GhhKL/blurry.jpg

Sharp: https://i.ibb.co/QY7zRjz/sharp.jpg

[http POST] /filter/all


    {  
      "var_laplacian": 52.40,
      "is_frontal": "FRONTAL",
    }

[http POST] /filter/isFrontal

    {
      "is_frontal": "FRONTAL"
    }

[http POST] /filter/laplacian

    {
      "var_laplacian": 800.01
    }

[http GET] /health

    {
     "message": "OK"
    }    

##TODO

[ ] Measure distance between eyes for better sharpness scaling

[ ] Allow thresholds to be passed in body

[ ] Divide image into smaller-blocks for better sharpness analysis

[ ] Logger

[ ] More tests!

pyjudger's People

Contributors

oskar-k313 avatar

Watchers

 avatar

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.