Skip to content

Commit

Permalink
#106 Formatting fixes (#121)
Browse files Browse the repository at this point in the history
* Resized demo gifs, fixed formatting errors.
* Fixed features.md link and the links in features.md
* Created user guide
* Update README.md to point user guide
  • Loading branch information
derekdkim authored and amitguptagwl committed Oct 16, 2018
1 parent 994437e commit ad04bd6
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 77 deletions.
99 changes: 30 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,25 @@ A web based tool to label images for objects that can be used to train dlib or o

ImgLab is platform independent, runs directly from the browser, and has no prerequisites. It requires minimal CPU and memory.

One of imglab's key advantages is that you can use 3rd party libraries to **fast annotation process**, which can save a lot of time and effort.
### Auto suggestion

![Auto suggestion](/img/imglab-autosuggestion.gif)

### Plugins

![Plugins](/img/imglab-fpp.gif)

### Different Shapes

![Plugins](/img/imglab-polygon.gif)

### Keyboard Shortcuts:

![Hotkeys](/img/imglab-hotkeys.gif)

### Zoom In/Out:

![Hotkeys](/img/imglab-zoom.gif)

**Other features**:

Expand All @@ -48,80 +66,23 @@ One of imglab's key advantages is that you can use 3rd party libraries to **fast
* Set image opacity to highlight annotation shapes and points.
* Tracking lines and mouse coordinates for precise annotations.

## How to use

You can either import a file from a URL or from your computer. You can plot the landmark points by yourself or you can request to face++ API to collect the points which automatically gets plotted on the image (You will need to register on face++ to use the API.). If you feel that the result should be improved, you can drag a point to the correct location. Check [Demo video](https://youtu.be/Y-bJo_ylHTw) on Youtube.

### Keyboard Shortcuts:

*File Management:*

Shift + Alt + O : Open image folder.
Ctrl + I : Import data file.
Ctrl + E : Export data file.
Alt + Left/Right Arrow : Navigate through images in the slider.

*Image Manipulation:*

Del : Delete selected shapes or feature points.
Enter : Confirm action.
Alt + A : Select all shapes.
Ctrl + Directional Arrow : Move the currently selected shape in the corresponding direction.
Visit the [Features Documentation](/docs/features.md) for a complete list of the features.

*Toolbar Shortcuts:*

Alt + F : Feature Point
Alt + C : Circle
Alt + R : Rectangle
Alt + P : Polygon
Alt + M : Move
Alt + L : Light
Alt + E : Ellipse
Alt + + (Plus key) : Zoom
Alt + W : Magic wand


### Auto suggestion

![Auto suggestion](img/imglab-autosuggestion.gif)

### Plugins

![Plugins](img/imglab-fpp.gif)

### Different Shapes

![Plugins](img/imglab-polygon.gif)

### Keyboard Shortcuts:

![Hotkeys](img/imglab-hotkeys.gif)

### Zoom In/Out:

![Hotkeys](img/imglab-zoom.gif)

Check [video](https://youtu.be/Y-bJo_ylHTw) tutorial/demonstration for more details.

## Getting Started

To use it offline, you can either download installers or clone this repo and run it on a local server.
## How to use

### Installing
* [Importing images](/docs/guide.md/#import)

1. Fork this repository on github and make a clone from your forked copy
```
$ git clone 'your_local_fork_on_github'
```
To install locally, head to the [Installation Guide](/docs/guide.md/#offline-installation).

### Setup local environment
### How to use Imglab's features:

1. Install node and npm
2. Open the terminal and run `$ npm install -g live-server` to install node live server.
3. Run `$ live-server` in /imglab/ folder.
4. Open your browser (if it hasn't popped up already) at: `http://127.0.0.1:8080/`
* [Auto-suggestions](/docs/guide.md/#auto-suggestion)
* [Plug-ins](/docs/guide.md/#plugins) (Face++)
* [Creating shapes](/docs/guide.md/#different-shapes)
* [Keyboard Shortcuts](/docs/guide.md/#keyboard-shortcuts)
* [Zooming in/out](/docs/guide.md/#zoom-inout)

*Nore that* [live-server](https://www.npmjs.com/package/live-server) is just an app to run the server in easy way. You may try any other option as well.
Check the [Demo Video](https://youtu.be/Y-bJo_ylHTw) tutorial/demonstration or the [User Guide](/docs/guide.md) for more details.

## Contributing

Expand Down
16 changes: 8 additions & 8 deletions docs/features.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
##ImgLab Features:
# ImgLab Features:

### Auto suggestion

![Auto suggestion](img/imglab-autosuggestion.gif)
![Auto suggestion](/img/imglab-autosuggestion.gif)

### Plugins

![Plugins](img/imglab-fpp.gif)
![Plugins](/img/imglab-fpp.gif)

### Different Shapes

![Polygons](img/imglab-polygon.gif)
![Polygons](/img/imglab-polygon.gif)

### Keyboard Shortcuts:

![Hotkeys](img/imglab-hotkeys.gif)
![Hotkeys](/img/imglab-hotkeys.gif)

### Zoom In/Out:

![Hotkeys](img/imglab-zoom.gif)
![Zoom](/img/imglab-zoom.gif)

### Copy/Paste Labels Across Images:

DEMONSTRATION GIF GOES HERE.
DEMONSTRATION GIF NOT YET AVAILABLE.


Check [video](https://youtu.be/Y-bJo_ylHTw) tutorial/demonstration for more details.
Check [video](https://youtu.be/Y-bJo_ylHTw) tutorial/demonstration for more details.
102 changes: 102 additions & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# ImgLab User Guide:

### [Import:](#import)

1. To open a file, click the photo icon on the bottom left-hand corner (or press Ctrl + I).
2. To open a folder, click the folder icon right below the photo icon.
3. Left click a photo that appears in the slider in the bottom row.

### [Auto suggestion:](#auto-suggestion)

![Auto suggestion](/img/imglab-autosuggestion.gif)

### [Plugins:](#plugins)

You can request to face++ API to collect the points which automatically gets plotted on the image.
To use this, you must register on Face++ to use their API.

1. Click the puzzle icon on the top right-hand corner.
2. On the drag-down menu, select Face Plus Plus.
3. Enter the api_key if applicable (or leave blank).
4. Click Plot with Face++.
5. If you feel that the result should be improved, you can drag any of the points to the correct location.

![Plugins](/img/imglab-fpp.gif)

### [Different Shapes:](#different-shapes)

Create various shapes (circles, rectangles, polygons) on your image.

1. Select any shapes tool on the toolbar on the left-hand side.
2. Left click on the starting point of the image.
3. Drag the curse while holding the left click to adjust the size of the shape.

![Polygons](/img/imglab-polygon.gif)

### [Keyboard Shortcuts:](##keyboard-shortcuts)

Use the following shortcuts to speed up your work and save yourself some clicking.

*File Management:*

* Shift + Alt + O : Open image folder.
* Ctrl + I : Import data file.
* Ctrl + E : Export data file.
* Alt + Left/Right Arrow : Navigate through images in the slider.

*Image Manipulation:*

* Del : Delete selected shapes or feature points.
* Enter : Confirm action.
* Alt + A : Select all shapes.
* Ctrl + Directional Arrow : Move the currently selected shape in the corresponding direction.

*Toolbar Shortcuts:*

* Alt + F : Feature Point
* Alt + C : Circle
* Alt + R : Rectangle
* Alt + P : Polygon
* Alt + M : Move
* Alt + L : Light
* Alt + E : Ellipse
* Alt + + (Plus key) : Zoom
* Alt + W : Magic wand

![Hotkeys](/img/imglab-hotkeys.gif)

### [Zoom In/Out:](#zoom-inout)

Zoom in and out of your image to adjust your precision or simply get a different view.

1. Select the magnifying glass in the toolbar on the top left-hand corner.
2. Click the magnifying glass with the (+) to zoom in or (-) to zoom out.

![Zoom](/img/imglab-zoom.gif)

### [Copy/Paste Labels Across Images:](##copypaste-labels-across-images)

A short description of the feature will go here.

1. Steps to complete this operation will be available here.
2. Placeholder. Work in progress.

DEMONSTRATION GIF NOT YET AVAILABLE.

### [Offline Installation:](#offline-installation)

To use it offline, you can either download installers or clone this repo and run it on a local server.

#### Installing

1. Fork this repository on github and make a clone from your forked copy
2. Go to the folder you wish the create the directory and type ``` $ git clone 'your_local_fork_on_github' ``` in your terminal.

#### Setup local environment

1. Install node and npm
2. Open the terminal and run `$ npm install -g live-server` to install node live server.
3. Run `$ live-server` in /imglab/ folder.
4. Open your browser (if it hasn't popped up already) at: `http://127.0.0.1:8080/`

*Note that* [live-server](https://www.npmjs.com/package/live-server) is just an app to run the server in easy way. You may try any other option as well.
Binary file modified img/imglab-hotkeys.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/imglab-zoom.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ad04bd6

Please sign in to comment.