Documentation
¶
Index ¶
- Variables
- func MakeAnnotoriousScript(imageId string, collection string) (*Node, error)
- func MakeLink(imageId, collection string) string
- func RegionTableBody(title string, rows []RegionRow) Node
- func ShortenUUID(id string) string
- func ToAddBoxRequest(r AnnotoriousBoxRequest) (*addbox.Request, error)
- func ToUpdateBoxRequest(r AnnotoriousBoxModel) (*updbox.Request, error)
- type AnnotationView
- func (v *AnnotationView) AddBox(b v.BoundingBox)
- func (v *AnnotationView) AddLabel(l v.ImageLabel)
- func (v *AnnotationView) DeleteAnnotation(string)
- func (v *AnnotationView) Error(err error)
- func (v *AnnotationView) RenderAll(w http.ResponseWriter)
- func (v *AnnotationView) RenderAnnotationList(w http.ResponseWriter)
- func (v *AnnotationView) RenderAnnotations(w http.ResponseWriter)
- func (v *AnnotationView) SetAnnotations(boxes []v.BoundingBox, imageLabels []v.ImageLabel)
- func (v *AnnotationView) SetAvailableImageLabels(labels []string)
- func (v *AnnotationView) SetAvailableLabels(labels []string)
- func (v *AnnotationView) SetImage(image v.Image)
- func (v *AnnotationView) SetImageInfo(info v.ImageInfo)
- func (v *AnnotationView) SetScroller(buttons v.ScrollerButtons)
- func (v *AnnotationView) UpdateBox(b v.BoundingBox)
- func (v *AnnotationView) UpdateLabel(a v.Annotation)
- type AnnotationsListView
- type AnnotatorState
- type AnnotoriousBody
- type AnnotoriousBoxModel
- type AnnotoriousBoxRequest
- type Bounds
- type BoxCoordinates
- type BoxGeometry
- type BoxSelector
- type BoxTarget
- type ImageInfosView
- type ImageLabelRow
- type ImageLabelTable
- type ImageView
- type LabelModalKind
- type LabelSelector
- type NewLabelModal
- type Properties
- type RegionRow
- type RegionTable
- type Request
- type ScrollerView
Constants ¶
This section is empty.
Variables ¶
View Source
var AddIcon = `` /* 270-byte string literal not displayed */
View Source
var BadgeIcon = `` /* 616-byte string literal not displayed */
View Source
var TrashIcon = `` /* 636-byte string literal not displayed */
Functions ¶
func MakeAnnotoriousScript ¶
func RegionTableBody ¶
func ShortenUUID ¶
func ToAddBoxRequest ¶
func ToAddBoxRequest(r AnnotoriousBoxRequest) (*addbox.Request, error)
func ToUpdateBoxRequest ¶
func ToUpdateBoxRequest(r AnnotoriousBoxModel) (*updbox.Request, error)
Types ¶
type AnnotationView ¶
type AnnotationView struct {
ImageView
ImageInfosView
AnnotationsListView
ScrollerView
// contains filtered or unexported fields
}
func NewAnnotationView ¶
func NewAnnotationView() *AnnotationView
func (*AnnotationView) AddBox ¶
func (v *AnnotationView) AddBox(b v.BoundingBox)
func (*AnnotationView) AddLabel ¶
func (v *AnnotationView) AddLabel(l v.ImageLabel)
func (*AnnotationView) DeleteAnnotation ¶
func (v *AnnotationView) DeleteAnnotation(string)
func (*AnnotationView) Error ¶
func (v *AnnotationView) Error(err error)
func (*AnnotationView) RenderAll ¶
func (v *AnnotationView) RenderAll(w http.ResponseWriter)
func (*AnnotationView) RenderAnnotationList ¶
func (v *AnnotationView) RenderAnnotationList(w http.ResponseWriter)
func (*AnnotationView) RenderAnnotations ¶
func (v *AnnotationView) RenderAnnotations(w http.ResponseWriter)
func (*AnnotationView) SetAnnotations ¶
func (v *AnnotationView) SetAnnotations(boxes []v.BoundingBox, imageLabels []v.ImageLabel)
func (*AnnotationView) SetAvailableImageLabels ¶
func (v *AnnotationView) SetAvailableImageLabels(labels []string)
func (*AnnotationView) SetAvailableLabels ¶
func (v *AnnotationView) SetAvailableLabels(labels []string)
func (*AnnotationView) SetImage ¶
func (v *AnnotationView) SetImage(image v.Image)
func (*AnnotationView) SetImageInfo ¶
func (v *AnnotationView) SetImageInfo(info v.ImageInfo)
func (*AnnotationView) SetScroller ¶
func (v *AnnotationView) SetScroller(buttons v.ScrollerButtons)
func (*AnnotationView) UpdateBox ¶
func (v *AnnotationView) UpdateBox(b v.BoundingBox)
func (*AnnotationView) UpdateLabel ¶
func (v *AnnotationView) UpdateLabel(a v.Annotation)
type AnnotationsListView ¶
type AnnotationsListView struct{}
func (*AnnotationsListView) Build ¶
func (v *AnnotationsListView) Build(boxes []view.BoundingBox, imageLabels []view.ImageLabel, availableLabels []string) Node
type AnnotatorState ¶
type AnnotoriousBody ¶
type AnnotoriousBoxModel ¶
type AnnotoriousBoxModel struct {
AnnotationId string `json:"id"`
Properties Properties `json:"properties"`
Target BoxTarget `json:"target"`
Bodies []AnnotoriousBody `json:"bodies"`
}
func ConvertToAnnotorious ¶
func ConvertToAnnotorious(boxes []view.BoundingBox) []AnnotoriousBoxModel
func (AnnotoriousBoxModel) ExtractCoordinates ¶
func (b AnnotoriousBoxModel) ExtractCoordinates() BoxCoordinates
type AnnotoriousBoxRequest ¶
type AnnotoriousBoxRequest struct {
ImageId string `json:"image_id"`
Collection string `json:"collection"`
Annotation AnnotoriousBoxModel `json:"annotation"`
Label string `json:"label"`
}
type BoxCoordinates ¶
type BoxGeometry ¶
type BoxSelector ¶
type BoxSelector struct {
Type string `json:"type"`
Geometry BoxGeometry `json:"geometry"`
}
type BoxTarget ¶
type BoxTarget struct {
Selector BoxSelector `json:"selector"`
}
type ImageInfosView ¶
type ImageInfosView struct {
// contains filtered or unexported fields
}
func (*ImageInfosView) Build ¶
func (p *ImageInfosView) Build(info view.ImageInfo) Node
type ImageLabelRow ¶
func (ImageLabelRow) Render ¶
func (r ImageLabelRow) Render() Node
type ImageLabelTable ¶
type ImageLabelTable struct {
Fields []string
Rows []ImageLabelRow
}
func (*ImageLabelTable) AddImageLabel ¶
func (t *ImageLabelTable) AddImageLabel(l view.ImageLabel)
func (*ImageLabelTable) Build ¶
func (t *ImageLabelTable) Build() Node
type LabelModalKind ¶
type LabelModalKind int
const ( RegionLabelModal LabelModalKind = iota ImageLabelModal )
type LabelSelector ¶
type NewLabelModal ¶
type Properties ¶
type RegionTable ¶
func (*RegionTable) AddBox ¶
func (t *RegionTable) AddBox(b view.BoundingBox)
func (*RegionTable) Build ¶
func (t *RegionTable) Build(title string) Node
type ScrollerView ¶
type ScrollerView struct {
}
func (*ScrollerView) Render ¶
func (p *ScrollerView) Render(buttons view.ScrollerButtons) Node
Click to show internal directories.
Click to hide internal directories.