Giter VIP home page Giter VIP logo

objclassifier's Introduction

ObjClassifier

Description

Objects classification service which provides simple REST API for images upload and search images by a class. Free tensorflow model published under the Apache license is used for the classification. H2 database is used as a data storagre.

Installation

  1. Build JAR using mvn package command.
  2. Create models directory and place tensorflow_inception_graph.* there.
  3. Create public directory as a storage for the uploaded images.
  4. Create application.properties and set needed parameters for the application.
  5. Run the application using java -jar objclassifier-0.0.1-SNAPSHOT.jar command.

Configuration

The project uses Spring boot, Spring Web and Spring data JPA, so you shoud use standard properties if you need to customize database or service.

You should set processing properties:

  • processing.path

    Path to processed images storage. By default it is 'public'.

  • processing.model

    Path to the tensorflow classification model.

  • processing.groups

    Path to the groups list file.

API

/v1/groups [GET]

Return a list of images groups.

Response example:

[
  "zebra",
  "African elephant",
  "tabby"
]

/v1/groups/{name} [GET]

Return a list of images in a group {name}.

Response example:

[
  "1661588051129.jpg"
  "1661588055135.jpg"
]

/v1/images/{name} [GET]

Return a list of groups for specified image {name}

Response example:

[
  "zebra"
]

/v1/images [POST]

Process and classify image from file field of the request. File will be saved to the processing.path folder with name generated from unix epoch time.

/{image} [GET]

Get a previously uploaded image with the name {image}.

LICENSE

You can do whatever you need with the code. Data and software should be totally free!

objclassifier's People

Watchers

Anton Shpakovsky 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.