Git Product home page Git Product logo

imageannotator's Introduction

Simple Web Based Image Annotator

Image Annotator

Web based image annotator that creates Darknet/YOLO txt files for machine learning systems. Only two files needed! Currently, the processing file uses PHP with the GD extension.

I was looking for a very simple, web based way to take a collection of images and produce annotations from shared contributors over the web. This is the very beginning so beware of missing features, bugs and security issues.

Creates YOLO/Darknet style .txt files:

0 0.025 0.90416666666667 0.10625 0.1
0 0.73125 0.86458333333333 0.0171875 0.03125
3 0.353125 0.925 0.10625 0.20625

Features

Images are shuffled before serving to the webpage.
Scroll wheel zooming is supported.
Segemented parts of image are displayed and zoomed

TODO

Add security
Review current annotations
Work on full resolution images

Install

All you need is PHP with gd image extension.

There are only two files that need web access: index.html and process.php.
Within the web directory containing the two files, create a "data" directory. This is the operational directory for a training set. This way, it can simply be linked or copied out. In the future, you will be able to select a training set to annotate.

Create a classes.txt file in your data directory containing a class name per line, no special characters since this name will be used as IDs in the javascript.All annotations are indexes to this file. Only add new classes to end of file, otherwise you will need to redo all annotations for the new class order.
Put all of your images in a data/images directory.

The webserver needs write access to this directory.

Directory Structure

index.html
process.php
data--\
      classes.txt
      images--\
              image1.jpg
              image2.jpg
                   .
                   .
                   .

To create a sequence of images from a video, you can use the following ffmpeg command:
ffmpeg -i video.mp4 -vf fps=1 image%d.png
Where the fps=# is the number of images you want per second of video.

The annotation files will be placed into the images directory with the same name as the image and a .txt extension.

Do Over

To clear out any annotations associated with an image, simply delete the associated .txt file.

imageannotator's People

Contributors

klaxxon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

bri-vax 877325778

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.