Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service uses Vision API to annotate frames with safe search criteria likelihood.
func NewService ¶
func NewService(analyzer imageAnalyzer, log log) *Service
NewService creates Service.
func (*Service) AnnotateFramesAsync ¶
func (s *Service) AnnotateFramesAsync(ctx context.Context, frames []model.Frame, workers int) ([]model.FrameAnalyzed, []error)
AnnotateFramesAsync asynchronously annotates frames with safe search criteria likelihood. workers variable represents number of go routines working sending requests to the API at the same time. Quotas and limits: https://cloud.google.com/vision/quotas.
Click to show internal directories.
Click to hide internal directories.