Giter VIP home page Giter VIP logo

arrows's Introduction

Arrows

An AI-ML Project that captures the images on the go via live video feed and classifies the image into labels using Inception-V3 pre-trained model along with Tensorflow. The video processing is done via OpenCV.

The aim of this project is to aid visually challenged people to know more about their surroundings. The image after classfication is converted to voice through TTS (Text-To-Speech) so they can know about their surroundings a bit better.

Getting Started

Please note that these are just initial modules for the time being. These have to be linked and made into one coherent piece of software which I plan to do if selected. Also Having a good internet connection is necessary and at least 200 MB of space for downloading the pre-trained Inception-V3 model.

Prerequisites

  1. Python 2.7+
  2. OpenCV 3+
  3. Tensorflow
  4. gTTS (Google Text-To-Speech Engine)
  5. Active Internet Connection

Installing

After making sure that the above pre-requisites are met, clone this repository:

git clone https://github.com/AmitJoki/Arrows.git`

After cloning:

cd Arrows
python extract_images.py --pathIn=animals.mp4 --pathOut='images/'

The above will extract a frame for every one second of the given video and put them under images folder. The images are stored in the format frame{d}.jpg format.

The output roughly looks like this:

Screenshot

As you can see, the good frames are frame6, frame18, frame23. The others will work too but will have a lesser accuracy.

Now, open a python shell or any IDE you prefer and make sure your Current Working Directory is Arrows and do:

>>> import classify_image;
>>> classify_image.run('images/frame6.jpg');
>>> classify_image.run('images/frame23.jpg');
>>> classify_image.run('images/frame18.jpg');

For every classify_image.run() check the Arrows folder for out.mp3. It contains the audio of the classified label.

You will be getting the output with high degree of accuracy and the classified label is outputted to the speaker via Google Text-To-Speech Engine.

Milestones

  1. Integrate all these snippets into one coherent program.
  2. Use transfer-learning of Inception-V3 and train the model for more day-today activities.
  3. Use further machine learning and identify good images and leave the noisy images.
  4. For the video, a pair of glasses with a small camera attached to it is to be created from which the video feed will be obtained from.
  5. Furthermore, headsets can be designed into the glasses so that the voice output is given directly to their ears.

Resources

The image classification snippet is taken from Tensorflow's offical documentation to which I've made some few changes.

arrows's People

Contributors

amitjoki avatar

Watchers

James Cloos 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.