Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#106 Formatting fixes #121

Merged
merged 29 commits into from
Oct 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
49f0623
Resized demo gifs, fixed formatting errors.
derekdkim Oct 13, 2018
496dab4
Changed to absolute links
derekdkim Oct 13, 2018
ef57476
Fixed features.md link
derekdkim Oct 13, 2018
d932f6f
Testing absolute links in test branch
derekdkim Oct 13, 2018
90ca97b
Update features.md
derekdkim Oct 13, 2018
eb10c5b
Corrected gif linking issue
derekdkim Oct 13, 2018
11cef2c
Fixed formatting error in features.md
derekdkim Oct 13, 2018
7aacdb4
Fixed wrong links in features.md
derekdkim Oct 13, 2018
a89b021
Created user guide
derekdkim Oct 14, 2018
3abaf7d
Worked in guide, updated README
derekdkim Oct 14, 2018
60509e1
Updated README
derekdkim Oct 14, 2018
053e594
Reformatted hyperlinks
derekdkim Oct 14, 2018
dd29916
Added import to guide.md
derekdkim Oct 14, 2018
9e2444b
Fix toCOCO bbox returning undefined
jbovee Oct 15, 2018
994437e
Merge pull request #123 from jbovee/fix-toCOCO-bbox
amitguptagwl Oct 15, 2018
8925f78
Resized demo gifs, fixed formatting errors.
derekdkim Oct 13, 2018
dd84786
Changed to absolute links
derekdkim Oct 13, 2018
728f943
Fixed features.md link
derekdkim Oct 13, 2018
332b51b
Testing absolute links in test branch
derekdkim Oct 13, 2018
a776f3c
Update features.md
derekdkim Oct 13, 2018
1f42518
Corrected gif linking issue
derekdkim Oct 13, 2018
8b257ab
Fixed formatting error in features.md
derekdkim Oct 13, 2018
a340795
Fixed wrong links in features.md
derekdkim Oct 13, 2018
0be125b
Created user guide
derekdkim Oct 14, 2018
d9e5617
Worked in guide, updated README
derekdkim Oct 14, 2018
29e63bf
Updated README
derekdkim Oct 14, 2018
9a76e8c
Reformatted hyperlinks
derekdkim Oct 14, 2018
a32e0b9
Added import to guide.md
derekdkim Oct 14, 2018
fac01c9
Merge branch 'master' of https://github.com/derekdkim/imglab
derekdkim Oct 15, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion dataformaters/coco.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var cocoFormater = {
area : area,
"iscrowd": 0,
"image_id": image_i+1,
"bbox": shape_i.bbox,
"bbox": shape.bbox,
"category_id": categories.indexOf(shape.category) + 1,
"id": shape_i+1,
"ignore": 0
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.