Git Product home page Git Product logo

image-caption-generator's Introduction

Image Caption Generator

This repository contains the code for the chrome extension "Image Caption Generator" and its backend.

The model used in the backend is described in the CVPR2015 paper "Show and tell: A neural image caption generator".

Introduction

The​ ​application​ ​is​ ​basically​ ​a​ ​functional​ ​Google​ ​Chrome​ ​Extension​ ​that generates​ ​a​ ​caption​ ​for​ ​an​ ​image​ ​which​ ​describes​ ​what​ ​is​ ​contained​ ​in​ ​the image.​ ​The​ ​image​ ​captioning​ ​is​ ​done​ ​by​ ​a​ ​deep​ ​learning​ ​network​ ​which​ ​runs​ ​on a​ ​cloud​ ​server (Heroku).​ ​The​ ​caption​ ​generated​ ​is​ ​converted​ ​into​ ​speech​ ​by JavaScript’s​ ​Web​ ​Speech​ ​AP (SpeechSynthesisUtterance​ ​API).

Installation

  1. Open Google Chrome and go to Extensions (under More Tools)
  2. Select "Load unpacked extension".
  3. Select the folder "image-caption Extension" which is inside the directory "Code Of Google Chrome Extension".

The extension is now installed.

If you want to run the backend in local system, then the model has to be trained first. The trained model can be downloaded from this link . Once it is downloaded, extract the files in the directory Code Running In Heroku Cloud Server/image-caption/saved_models.

Usage

  1. Right-click on an image for which you want to view the description.
  2. Select "Get Image Description" from the menu.
  3. The description will be displayed on an overlay. The text is also converted to audio.
  4. Press escape to exit the overlay.

Screenshots

  1. Options shown when an image is right-clicked

Options shown when an image is right-clicked

  1. Overlay displayed after selecting the "Get Image Description" option

Overlay displayed after selecting the "Get Image Description" option

  1. Response from the cloud server when there is no error

Response from the cloud server when there is no error

  1. Response from the cloud server when there is an error

Response from the cloud server when there is an error

Limitations

  • It can't​ ​be​ ​used​ ​for​ ​protected​ ​images.​ ​Example-​ ​It​ ​can’t​ ​be​ ​used​ ​on​ ​the images​ ​in​ ​facebook​ ​as​ ​they​ ​are​ ​protected​ ones.
  • Description for some pictures may not be accurate.

image-caption-generator's People

Contributors

akilarif avatar abhisuri97 avatar

Stargazers

Shitty Girl avatar Vishwa avatar

Watchers

 avatar

Forkers

arjunkrishnak

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.