pascalvoc

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 BoundBox

type BoundBox struct {
	Xmin int `xml:"xmin"`
	Ymin int `xml:"ymin"`
	Xmax int `xml:"xmax"`
	Ymax int `xml:"ymax"`
}

BoundBox -

type Object

type Object struct {
	Name        string   `xml:"name"`
	Difficult   int      `xml:"difficult"`
	BoundingBox BoundBox `xml:"bndbox"`
}

Object -

func RectAnnotationToObject

func RectAnnotationToObject(rect annotation.RectAnnotation) Object

type Size

type Size struct {
	Width  int `xml:"width"`
	Height int `xml:"height"`
	Depth  int `xml:"depth"`
}

Size -

type Voc

type Voc struct {
	Data VocAnnotation
	// contains filtered or unexported fields
}

Voc -

func NewVocXml

func NewVocXml(filename string, width int, height int, depth int) *Voc

func Parse

func Parse(reader io.Reader) (*Voc, error)

func (*Voc) AddAnnotations

func (v *Voc) AddAnnotations(rects []annotation.RectAnnotation)

AddObject addes the object from annotation collections

func (*Voc) AddObject

func (v *Voc) AddObject(o Object)

func (*Voc) AddRectAnnotation

func (v *Voc) AddRectAnnotation(rect annotation.RectAnnotation)

func (*Voc) AnnotationCollection

func (v *Voc) AnnotationCollection() annotation.AnnotationCollection

func (*Voc) RectAnnotations

func (v *Voc) RectAnnotations() []annotation.RectAnnotation

func (*Voc) XML

func (v *Voc) XML() ([]byte, error)

XML -

type VocAnnotation

type VocAnnotation struct {
	XMLName   string   `xml:"annotation"`
	FileName  string   `xml:"filename"`
	ImageSize Size     `xml:"size"`
	Segmented int      `xml:"segmented"`
	Objects   []Object `xml:"object"`
}

VocAnnotation - Pascal VOC for annotation

Jump to

Keyboard shortcuts

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