labelme

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelmeJSON

type LabelmeJSON struct {
	Shapes    []Shape `bson:"shapes" json:"shapes"`
	LineColor [4]int  `bson:"lineColor" json:"lineColor"`
	FillColor [4]int  `bson:"fillColor" json:"fillColor"`
	ImagePath string  `bson:"imagePath" json:"imagePath"`
	ImageData string  `bson:"imageData" json:"imageData"`
}

func (*LabelmeJSON) AddShape

func (l *LabelmeJSON) AddShape(s Shape)

func (*LabelmeJSON) JSON

func (l *LabelmeJSON) JSON() ([]byte, error)

type Point

type Point [2]int

type Shape

type Shape struct {
	Label     string  `bson:"label" json:"label"`
	LineColor *[4]int `bson:"line_color" json:"line_color"`
	FillColor *[4]int `bson:"fill_color" json:"fill_color"`
	Points    []Point `bson:"points" json:"points"`
}

func PolygonAnnotationToShape

func PolygonAnnotationToShape(ann annotation.PolygonAnnotation, lineColor *[4]int, fillColor *[4]int) Shape

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL