Coder Social home page Coder Social logo

letstryy / image-labelling-tool-with-google-vision-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 39 KB

Image Annotation Tool and label object bounding boxes in images using Google Vision

Home Page: https://cloud.google.com/vision/docs/ocr

Python 29.28% HTML 70.72%
googlevisionapi label-images text-detection bounding-boxes

image-labelling-tool-with-google-vision-api's Introduction

Image-Labelling-Tool-with-Google-Vision-Api

A web based tool to label images. It uses Google Vision API returned Bounding Boxes coordinates.

Google Vision Api

Get the Google Vision Document Text Detection Api key and add to the file to see the results.

Features

It runs directly from the browser and bounding boxes on image are clickable and label gets popped up upon clicking the bouding box boundary

  • Add a label for a box
    • For the box you would like to give a label, find its id (noted in the top left corner of the box)
  • Find the label with the corresponding number
    • Enter the name you want in the input field
    • Press enter
  • Remove label click the red button on the label you would like to remove
  • Move to next image
    • Click the next Arrow button
  • ZoomIn and ZoomOut
    • Click on the ZoomIn and Zoomout button
  • Rotate image
    • Restore
    • Rotate 180
    • Rotate Right
    • Rotate Left
  • Draw Rectangle
    • Manually draw rectangle
  • Remove Rectangle
    • Delete the rectangle
  • Discard the image
    • Click on the Discard button
  • Output File
    • At the top level of the directory where the program was run, there should be a file called out.csv that contains the generated data whch contains the google id, angle(Click on the rotate button to get the right orientation of the image and get the angle accordingly; for future use, want to crop details, get the image orientation, rotate it according to the angle and then crop) and image coordinates.

Screen Shot 2019-09-21 at 4 24 25 PM

How to Run

  1. Install flask and google-cloud-vision
pip install flask 
pip install google-cloud-vision
  1. Open the terminal and run
python3 app.py dir_name/
  1. Open your browser (if it hasn't popped up already) at: http://127.0.0.1:5000/

  2. Login credentials:

    username: admin

    password: admin

Built with

This application is built upon following technology stack.

  • Python
  • Flask
  • HTML5-canvas
  • JS

Author

Sneha Rawat [[email protected]]

Linkedin: https://www.linkedin.com/in/sneharawatt/

image-labelling-tool-with-google-vision-api's People

Watchers

 avatar  avatar

Forkers

healthmemmo

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.