1.1.0 • Published 5 years ago

xtion-label v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

xtion-label

a js label marker for machine learning like label me

online demo

https://wangzhipeng404.github.io/xtion-label/

Getting Start

in browser

<srcipt src="path2xtion-label/lib/index.umd.js"></script>

or use npm

npm install xtion-label

then import it

import XLabel from 'xtion-label'

const config = { /* see options */}
const xlabel = new XLabel(document.getElementById('container'), config)
xlabel.setImg('/label-img-path')
xlabel.setData(label data)


// get label data
xlabel.getData()

Options

optiondefaultValuedesc
zoomMax10max zoom level
zoomMin0.5min zoom level

Shutcouts

shortutDescription
ctrl + fdraw reactangle
ctrl + gdraw polyon
ctrl + hdraw circle
ctrl + wheelzoom change
ctrl + leftClickcopy shape or move img