biz

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewMiner)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type Miner

type Miner struct {
	// contains filtered or unexported fields
}

func NewMiner

func NewMiner(repo MinerRepo) *Miner

func (*Miner) FeatureEnabled

func (m *Miner) FeatureEnabled() bool

func (*Miner) RecognizeImageURL

func (m *Miner) RecognizeImageURL(ctx context.Context, url string) ([]*OCRResults, *errors.Error)

type MinerRepo

type MinerRepo interface {
	RecognizeImage(context.Context, []byte) ([]*OCRResults, error)
}

type OCRResults

type OCRResults struct {
	Confidence float64 `json:"confidence"`
	Text       string  `json:"text"`
}

Jump to

Keyboard shortcuts

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