Documentation
¶
Index ¶
- type BoundBox
- type Object
- type Size
- type Voc
- func (v *Voc) AddAnnotations(rects []annotation.RectAnnotation)
- func (v *Voc) AddObject(o Object)
- func (v *Voc) AddRectAnnotation(rect annotation.RectAnnotation)
- func (v *Voc) AnnotationCollection() annotation.AnnotationCollection
- func (v *Voc) RectAnnotations() []annotation.RectAnnotation
- func (v *Voc) XML() ([]byte, error)
- type VocAnnotation
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 Voc ¶
type Voc struct {
Data VocAnnotation
// contains filtered or unexported fields
}
Voc -
func (*Voc) AddAnnotations ¶
func (v *Voc) AddAnnotations(rects []annotation.RectAnnotation)
AddObject addes the object from annotation collections
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
Click to show internal directories.
Click to hide internal directories.