GithubHelp home page GithubHelp logo

comparison-server's Introduction

comparison-server

takes two images and returns a set of comparison metrics

Set up

There are a few dependencies to look out for. You can either install them manually, or use the commands below.

This can be installed locally on your system pretty easily using virtualenv and pip.

Just clone this repository and do the following commands:

$ cd comparison-server ( or wherever you cloned it to )
$ virtualenv venv --distribute
$ source venv/bin/activate
$ pip install -r requirements.txt

You can then run the server locally using foreman like this:

$ foreman start

If you want to skip all that and you already have the dependencies installed on your system, just do:

$ gunicorn comparison:app

Dependencies

Use

This server uses a handful of image processing algorithms to determines the similarity between two images. Presently you can only load files locally like so:

$ curl -F image_a=@/path/to/image_a.jpg -F image_b=@/path/to/image_b.jpg http//0.0.0.0:5000/

resulting in something like this

{
  "metrics": {
    "levenshtein": 24.479166666666657, 
    "nrmsd": 98.73465815317296, 
    "psnr": 37.955842578546836, 
    "similarity": 61.60691240991981
  }, 
  "stat": "ok"
  }

Metrics

Currently the following image processing algorithms are being used:

comparison-server's People

Contributors

micahwalter avatar

Watchers

 avatar  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.