analyzer

package
v0.0.0-...-caa8451 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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