Updating docs for preview release (#520)

Esse commit está contido em:
P.J. Little
2019-02-01 12:54:57 -08:00
commit de GitHub
commit d03f561edc
10 arquivos alterados com 189 adições e 34 exclusões
+1
Ver Arquivo
@@ -0,0 +1 @@
10.15.1
+25
Ver Arquivo
@@ -0,0 +1,25 @@
We welcome [issues](https://github.com/Microsoft/VoTT/issues) and [pull requests](https://github.com/Microsoft/VoTT/pulls) into the project. We ask that you follow these simple guidelines:
### Issues
- Look for duplicate issues & comment on thread if experiencing something similar
- Fill in template information (platform, OS, version, screenshots, etc.)
### Pull Requests
1. Find an issue to work on, or create a new one
2. Fork repo, make sure you have latest changes from `v2`
3. Create branch following naming convention: `git checkout -b issue-<###>-<short-description>`.
4. Write code
5. Add unit tests
6. Verify linting and unit tests by running `npm test`
7. Update docs if needed
8. Rebase on `v2` and resolve conflicts
9. Submit PR to `v2` branch
Try to keep PRs small to decrease the time required to review and merge.
### Style
1. This repo uses [EditorConfig](https://editorconfig.org/) to maintain consistent styles across multiple platforms and IDEs., please refer to
this [guide](docs/STYLE.md) for more information.
+21
Ver Arquivo
@@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2016-2019 Microsoft Commercial Software Engineering
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+142 -34
Ver Arquivo
@@ -2,63 +2,171 @@
[![Build Status](https://dev.azure.com/msft-vott/VoTT/_apis/build/status/VoTT-CI?branchName=v2)](https://dev.azure.com/msft-vott/VoTT/_build/latest?definitionId=6?branchName=v2) [![Code Coverage](https://codecov.io/gh/Microsoft/VoTT/branch/v2/graph/badge.svg)](https://codecov.io/gh/Microsoft/VoTT)
[CODE COMPLEXITY](https://microsoft.github.io/VoTT/)
[Current Complexity Analysis Report](https://microsoft.github.io/VoTT/)
The `v2` branch is a complete reboot of the original VoTT, and currently don't share git histories. The purpose of `v2` is to create a more extensible version of the original application while leveraging more recent frameworks such as React/Redux.
## **NOTE:** this is a Preview release of VoTT. Features may be incomplete or behave incorrectly (bugs! 🐞). [Feedback is appreciated!](https://github.com/Microsoft/VoTT/issues)
----------
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). For available scripts and other related info, see [our docs](docs/REACTAPP.md).
An open source annotation and labeling tool for image and video assets.
## Contributing Guidelines
VoTT is a React + Redux Web application, written in [TypeScript](https://github.com/Microsoft/TypeScript). This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
We welcome [issues](https://github.com/Microsoft/VoTT/issues) and [pull requests](https://github.com/Microsoft/VoTT/pulls) into the project. We ask that you follow these simple guidelines:
Features include:
### Issues
* The ability to label images or video frames
* Extensible model for importing data from local or cloud storage providers
* Extensible model for exporting labeled data to local or cloud storage providers
- Look for duplicate issues & comment on thread if experiencing something similar
- Fill in template information (platform, OS, version, screenshots, etc.)
VoTT helps facilitate an end-to-end machine learning pipeline:
### Pull Requests
![alt text](docs/images/ml-workflow.png "Machine Learning Workflow")
1. Find an issue to work on, or create a new one
2. Fork repo, make sure you have latest changes from `v2`
3. Create branch following naming convention: `git checkout -b issue-<###>-<short-description>`.
4. Write code
5. Add unit tests
6. Verify linting and unit tests by running `npm test`
7. Update docs if needed
8. Rebase on `v2` and resolve conflicts
9. Submit PR to `v2` branch
## Table of Contents
<!-- generated using: https://www.npmjs.com/package/markdown-toc-->
<!-- command: `markdown-toc -i README.md`-->
Try to keep PRs small to decrease the time required to review and merge
<!-- toc -->
### Style
- [Getting Started](#getting-started)
* [Running VoTT](#running-vott)
+ [Download and install a release package for your platform (recommended)](#download-and-install-a-release-package-for-your-platform-recommended)
+ [Build and run from source](#build-and-run-from-source)
- [V1 & V2](#v1--v2)
* [Where is V1?](#where-is-v1)
- [Using VoTT](#using-vott)
* [Creating Connections](#creating-connections)
* [Creating a New Project](#creating-a-new-project)
+ [Project Settings](#project-settings)
- [Security Tokens](#security-tokens)
* [Labeling an Image](#labeling-an-image)
* [Labeling a Video](#labeling-a-video)
* [Exporting Labels](#exporting-labels)
- [Collaborators](#collaborators)
- [Contributing to VoTT](#contributing-to-vott)
1. This repo use EditorConfig to maintain consistent style, please refer to
this [guide](docs/STYLE.md) for more information.
<!-- tocstop -->
### Code complexity
# Getting Started
1. You can view the latest code analysis report [here](https://microsoft.github.io/VoTT/)
1. More info about the analysi tool [here](docs/PLATO.md)
## Running VoTT
## Usage
VoTT can be installed as as native application or run from source.
For those who just want to use VoTT rather than contributing to it, you have two options:
### Download and install a release package for your platform (recommended)
### Download and install release package for your environment (recommended)
VoTT is available for Windows, Linux and OSX. Download the appropriate platform package/installer from [GitHub Releases](https://github.com/Microsoft/VoTT/releases). `v2` releases will be prefixed by `2.x`.
Find our [most recent release](https://github.com/Microsoft/VoTT/releases), download and run. `v2` releases will be prefixed by `2.x`.
### Build and run from source
#### Clone repo and run from terminal using `npm`
Run the following commands in your terminal:
VoTT requires [NodeJS (>= 10.x, Dubnium) and NPM](https://github.com/nodejs/Release)
```bash
git clone https://github.com/Microsoft/VoTT
git clone https://github.com/Microsoft/VoTT.git
cd VoTT
git checkout v2
npm install
npm start
```
**Important:** When running locally with `npm`, both the electron and the browser versions of the application will start. One major difference is that electron can access the local file system.
**Important to note that when running with `npm`, both the electron and the browser versions of the application will start. One major difference is that electron can access the local file system.**
# V1 & V2
VoTT V2 is a refactor and refresh of the original Electron-based application. As the usage and demand for VoTT grew, V2 was started as an initiative to improve and make VoTT more extensible and maintainable. In addition, V2 uses more modern development frameworks and patterns (React, Redux) and is authored in TypeScript.
A number of code quality practices have been adopted, including:
* Code Linting
* Unit tests & mocks (Jest, Enzyme)
* [Code coverage](https://codecov.io/gh/Microsoft/VoTT) ([CodeCov.io](https://codecov.io/))
* [Complexity analysis](https://microsoft.github.io/VoTT/) ([Plato](docs/PLATO.md))
All V2 efforts are on the [v2](https://github.com/Microsoft/VoTT/tree/v2) branch. The git history for V1 and V2 have significantly diverged; when V2 is complete, master will be updated to reflect V2.
## Where is V1?
Master still reflects The V1 codebase - any fixes or updates can still be made there. Likewise, all 1.x releases can still be found under [GitHub Releases](https://github.com/Microsoft/VoTT/releases).
# Using VoTT
## Creating Connections
VoTT is a 'Bring Your Own Data' (BYOD) application. In VoTT, connections are used to configure and manage source (assets to labeled) and target (where labels should be exported to) data sources.
Connections can be setup and shared across projects. Connections have been designed using an extensible provider model -- new source/target provides can easily be added. Currently, VOTT supports:
* Azure Blob Storage
* [Bing Image Search](https://azure.microsoft.com/en-us/services/cognitive-services/bing-image-search-api/)
* Local File System
To create a new connection, click the 'New Connection' icon, in the left hand navigation bar:
![alt text](docs/images/new-connection.png "New Connection")
## Creating a New Project
Labeling workflows in VoTT revolve around projects - a collection of configuration and settings that are persisted. Projects define a source and target connection, as well as project metadata - including tags to be used when labeling source assests.
As mentioned above, all projects require a source and target connection:
* **Source Connection** - Where to pull assests from
* **Target Connection** - Where project files and exported data are stored
![alt text](docs/images/new-project.png "New Project")
### Project Settings
Project settings can be modified after a project has been created, by clicking on the 'Project Setting' icon in the left hand navigation bar.
#### Security Tokens
Some project settings can include sensitive values, such as API keys or other shared secrets. Each project has will generate a security token that can be used to encrypt/decrypt sensitive project settings.
Security tokens can be found under 'Application Settings' by clicking the gear icon in the lower corner of the left hand navigation bar.
**NOTE:** Project files can be shared among multiple people. In order to share sensitive project settings, *all parties must have/use the same security token.*
The token name and key *must* match in order for sensitive values to successfully be decrypted.
![alt text](docs/images/security-tokens.png "Security Tokens")
## Labeling an Image
When a project is created or opened, the main tag editor window opens. The tag editor consists of of two main parts:
* A preview pane that contains a scrollable list of images and videos, from the source target
* The main editor tool that allows tags to be applied to drawn regions
Selecting an image/video on the left will load that image in the main tag editor. Regions can then be drawn on the loaded asset and a tag can be applied.
As desired, repeat this process for any additional assets.
![alt text](docs/images/label-image.png "Image Tagging")
## Labeling a Video
Coming soon!
## Exporting Labels
Once assets have been labeled, they can be exported into a variety of formats:
* [Azure Custom Vision Service](https://azure.microsoft.com/en-us/services/cognitive-services/custom-vision-service/)
* TensorFlow (Pascal VOC and TFRecords)
* VoTT (generic JSON schema)
In addition, all assets can be exported or only visisted/tagged assets can be exported. Click on the 'Export' icon in the left hand navigation. Select the appropriate export provider and which assets to export.
![alt text](docs/images/export-labels.png "Export Labels")
# Collaborators
VoTT was originally developed by the [Commercial Software Engineering (CSE) group at Microsoft](https://www.microsoft.com/developerblog/), in Israel.
# Contributing to VoTT
There are many ways to contribute to VoTT -- please review our [contribution guidelines](CONTRIBUTING.md).
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
with any additional questions or comments.
Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 243 KiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 2.9 MiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 217 KiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 252 KiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 363 KiB

Arquivo binário não exibido.

Depois

Largura:  |  Altura:  |  Tamanho: 359 KiB