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 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
Click to show internal directories.
Click to hide internal directories.