Giter Club home page Giter Club logo

general_img_classifier's Introduction

This code creates and trains an image detector to recognize pandas in images. By changing the directory paths and getting different training data you can classify any type of image you like.

The image detector operates using SIFT (Scale-Invariant Feature Transform) features, with a Visual Bag of Words model. For a detailed description see my blog posts:

My slide deck for this project is available to view. The slides are from a 5-minute lightning presentation at Metis.

Panda images for training the classifier used in the Flask app are from the Caltech101 dataset and from several hundred additional photos and drawings ripped from Google Images. The negative non-panda images used to train the classifier are also from the Caltech101 dataset.

To scrape images from Google Images yourself, check out my selenium_google_img_rip.py script in this repo.

Live Example

  1. Check out the Flask app: http://54.210.9.61/panda_app/

  2. Use the simple API. Eg with curl: curl -X POST -F "file=@path/to/cat.jpg" 'http://54.210.9.61/panda_app/'

  3. Upload webcam images to the flask server, eg using webcam-upload.py on the command line or panda-webcam-test.ipynb in Jupyter Notebook. Both require OpenCV 3.1.0 with nonfree packages included -- install instructions here (scroll down a bit)

general_img_classifier's People

Contributors

ianlondon avatar

Watchers

Harshit Saxena 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.