GithubHelp home page GithubHelp logo

tensorflowphotodatabase's Introduction

Photo Database using TensorFlow for Java

##Introduction

This project uses Tensorflow and various Classification models to classify photos and store results in a sqlite database.

It searches photos in a directory and adds the information to the database. The User Interface allows the use to view the photos with overlays showing positions of classes found by the Classification model. The photographs themselves are not changed by the overlays.

The Java Tensorflow Project can be found in its own repository Many thanks to the team there for helping me put together the initial FasterRCNN demo found at Java Models Github

##Getting started

This project is still WIP and shouldn't be seen as complete.

Download sqlite and install in the root directory

If you want to use the inception_resnet_v2_1024x1024 model then run uk.khall.sql.CreatePhotoDatabase class, otherwise use the openimages_v4_inception_resnet_v2 model then run uk.khall.sql.CreateOpenImagePhotoDatabase class.

The inception_resnet_v2_1024x1024 has been trained on COCO 2017. The openimages_v4_inception_resnet_v2 model has been trained on Open Images V4 classifying 600 classes. I've put more work into using this model. I've created some utility code to download and expand the tfhub models.

Next you may want scan a folder of images to add class information to your database. For FasterRcnn use uk.khall.cnn.rcnn.FasterRcnn. It's really basic at the moment. Edit your main procedure accordingly. Ditto for uk.khall.cnn.rcnn.OpenImages. It's all a bit basic so far.

Finally run uk.khall.ui.interact.RcnnSelectionUI or uk.khall.ui.interact.OpenImageSelectionUI to see a list of classes associate with the objects found in your photos. Click on one and you'll be presented with a list of images containing the class. Click on an image then press "View Image"

  • Things to do:

    • Edit the database.
    • Implement some form of CombinedNonMaxSuppression perhaps - there's a skeleton of the code commented out.
    • Really tidy up.
    • Look at all the new Java goodness.(Records etc.)
  • Issues:

    • Tensorflow 0.4.1 / 0.4.2 and openimages_v4_inception_resnet_v2 appear to have issues. Before I journey down that rabbit hole I'll leave it at 0.4.0.

tensorflowphotodatabase's People

Contributors

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