Documentation
¶
Index ¶
- type Annotator
- func (a *Annotator) AddBox(ctx context.Context, r addbox.Request, view v.View)
- func (a *Annotator) AddLabel(ctx context.Context, r addlbl.Request, view v.View)
- func (a *Annotator) DeleteAnnotation(ctx context.Context, r del.Request, view v.View)
- func (a *Annotator) Init(ctx context.Context, imageId string, collection string, view v.View)
- func (a *Annotator) UpdateBox(ctx context.Context, r updbox.Request, view v.View)
- func (a *Annotator) UpdateLabel(ctx context.Context, r updlbl.Request, view v.View)
- type FakeAnnotationDeleter
- type FakeBoxAdder
- type FakeBoxUpdater
- type FakeImageReader
- type FakeLabelAdder
- type FakeLabelFetcher
- type FakeLabelUpdater
- type FakeScroller
- type FakeView
- func (s *FakeView) AddBox(box v.BoundingBox)
- func (s *FakeView) AddLabel(l v.ImageLabel)
- func (s *FakeView) DeleteAnnotation(id string)
- func (s *FakeView) Error(error)
- func (s *FakeView) SetAnnotations(boxes []v.BoundingBox, labels []v.ImageLabel)
- func (s *FakeView) SetAvailableImageLabels(l []string)
- func (s *FakeView) SetAvailableLabels(l []string)
- func (s *FakeView) SetImage(i v.Image)
- func (s *FakeView) SetImageInfo(i v.ImageInfo)
- func (s *FakeView) SetScroller(buttons v.ScrollerButtons)
- func (s *FakeView) UpdateBox(b v.BoundingBox)
- func (s *FakeView) UpdateLabel(a v.Annotation)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotator ¶
type Annotator struct {
// contains filtered or unexported fields
}
func NewAnnotator ¶
func (*Annotator) DeleteAnnotation ¶
type FakeAnnotationDeleter ¶
func (*FakeAnnotationDeleter) Execute ¶
func (b *FakeAnnotationDeleter) Execute(c context.Context, r del.Request, o del.OutputPort)
type FakeBoxAdder ¶
type FakeBoxAdder struct {
Returns an.BoundingBox
}
func (*FakeBoxAdder) Execute ¶
func (b *FakeBoxAdder) Execute(c context.Context, r addbox.Request, o addbox.OutputPort)
type FakeBoxUpdater ¶
func (*FakeBoxUpdater) Execute ¶
func (b *FakeBoxUpdater) Execute(c context.Context, r updbox.Request, o updbox.OutputPort)
type FakeImageReader ¶
func (*FakeImageReader) Execute ¶
func (b *FakeImageReader) Execute(r imread.Request, o imread.OutputPort)
type FakeLabelAdder ¶
func (*FakeLabelAdder) Execute ¶
func (b *FakeLabelAdder) Execute(ctx context.Context, r addlbl.Request, o addlbl.OutputPort)
type FakeLabelFetcher ¶
type FakeLabelFetcher struct{}
func (*FakeLabelFetcher) Execute ¶
func (f *FakeLabelFetcher) Execute(ctx context.Context, o fetchlbl.OutputPort)
type FakeLabelUpdater ¶
type FakeLabelUpdater struct {
}
func (*FakeLabelUpdater) Execute ¶
func (b *FakeLabelUpdater) Execute(ctx context.Context, r updlbl.Request, o updlbl.OutputPort)
type FakeScroller ¶
func (*FakeScroller) Init ¶
func (s *FakeScroller) Init(imageId string, opts ...scr.Option) (*scr.ScrollerState, error)
type FakeView ¶
type FakeView struct {
GotScrollerButtons *v.ScrollerButtons
GotErr error
AddedBox *v.BoundingBox
AddedImageLabel *v.ImageLabel
GotImage *v.Image
GotImageInfo *v.ImageInfo
GotAvailableRegionLabels *[]string
GotAvailableImageLabels *[]string
GotAnnotationIds *[]string
RemovedAnnotationId *string
UpdatedBoxId *string
UpdatedAnnotation *v.Annotation
}
func (*FakeView) AddBox ¶
func (s *FakeView) AddBox(box v.BoundingBox)
func (*FakeView) AddLabel ¶
func (s *FakeView) AddLabel(l v.ImageLabel)
func (*FakeView) DeleteAnnotation ¶
func (*FakeView) SetAnnotations ¶
func (s *FakeView) SetAnnotations(boxes []v.BoundingBox, labels []v.ImageLabel)
func (*FakeView) SetAvailableImageLabels ¶
func (*FakeView) SetAvailableLabels ¶
func (*FakeView) SetImageInfo ¶
func (*FakeView) SetScroller ¶
func (s *FakeView) SetScroller(buttons v.ScrollerButtons)
func (*FakeView) UpdateBox ¶
func (s *FakeView) UpdateBox(b v.BoundingBox)
func (*FakeView) UpdateLabel ¶
func (s *FakeView) UpdateLabel(a v.Annotation)
Click to show internal directories.
Click to hide internal directories.