vision

package
v0.0.0-...-bc11ca3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssemblyAi

type AssemblyAi interface {
	Transcriber
}

func NewAssemblyAi

func NewAssemblyAi(key string) AssemblyAi

type Describer

type Describer interface {
	Describe(ctx context.Context, url string) ([]VisionResult, structured_error.StructuredError)
}

func NewAzureVision

func NewAzureVision(computerVisionKey string) Describer

type Google

type Google interface {
	OCR
	Translator
	Transcriber
}

func NewGoogle

func NewGoogle(privateKeyId string, privateKey string) (Google, error)

type OCR

type OCR interface {
	GetOCR(ctx context.Context, url string) (*OCRResult, structured_error.StructuredError)
	Close() error
}

type OCRLanguage

type OCRLanguage struct {
	Tag        language.Tag
	Confidence float32
}

type OCRResult

type OCRResult struct {
	Text     string
	Language OCRLanguage
}

type Transcriber

type Transcriber interface {
	Transcribe(ctx context.Context, url string) ([]TranscriptionResult, structured_error.StructuredError)
}

type TranscriptionResult

type TranscriptionResult VisionResult

type Translator

type Translator interface {
	Translate(ctx context.Context, message string) (language.Tag, string, structured_error.StructuredError)
	Close() error
}

type VisionResult

type VisionResult struct {
	Text       string
	Confidence float32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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