dlibutils

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Top    int    `xml:"top,attr"`
	Left   int    `xml:"left,attr"`
	Width  int    `xml:"width,attr"`
	Height int    `xml:"height,attr"`
	Parts  []Part `xml:"part"`
}

type Dataset

type Dataset struct {
	XMLName xml.Name `xml:"dataset"`
	Name    string   `xml:"Name"`
	Comment string   `xml:"comment"`
	Images  Images   `xml:"images"`
}

func NewDataset

func NewDataset(name string) Dataset

func (*Dataset) AddImage

func (x *Dataset) AddImage(file string, annots annotation.AnnotationCollection, image image.Image)

func (*Dataset) XML

func (x *Dataset) XML() ([]byte, error)

type Image

type Image struct {
	File string `xml:"file,attr"`
	Box  Box    `xml:"box"`
}

type Images

type Images struct {
	Images []Image `xml:"image"`
}

type Part

type Part struct {
	Name string `xml:"name,attr"`
	X    int    `xml:"x,attr"`
	Y    int    `xml:"y,attr"`
}

func PointAnnotationsToParts

func PointAnnotationsToParts(ps []annotation.PointAnnotation) []Part

Jump to

Keyboard shortcuts

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