cv

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateScaling

func CalculateScaling(ctx context.Context, img image.Image) (float64, error)

func CanScrollDown

func CanScrollDown(infoButtonLocation image.Point, inGrove bool, img image.Image) (bool, error)

func Find

func Find(static image.Image, dynamic image.Image) (image.Point, float32, error)

func FindInfoButton added in v0.0.17

func FindInfoButton(img image.Image) (image.Point, error)

func GetWhitelist added in v0.0.22

func GetWhitelist() string

func InitOCR

func InitOCR() error

func IsInGrove added in v0.0.17

func IsInGrove(img image.Image) (bool, error)

func OCRListing

func OCRListing(img image.Image) (string, error)

func OCRListingCount

func OCRListingCount(img image.Image) (string, error)

func OCRListingLevel

func OCRListingLevel(img image.Image) (string, error)

func PrepareForOCR

func PrepareForOCR(img image.Image, crop bool) image.Image

func ReadImage added in v0.0.16

func ReadImage(img image.Image, offset int, limit int) ([]types.ParsedListing, error)

func Scale

func Scale(img image.Image) image.Image

func ScaleAndFind

func ScaleAndFind(ctx context.Context, static image.Image, dynamic image.Image, progressOffset int) (float64, float32, image.Point, error)

func ScaleN

func ScaleN(n int) int

func ScaleNf

func ScaleNf(n float64) float64

Types

type RawListing

type RawListing struct {
	Count image.Image
	Text  image.Image
	Level image.Image
}

func ExtractToListings

func ExtractToListings(img image.Image, offset int, limit int) ([]RawListing, error)

type ScalingFunc added in v0.0.28

type ScalingFunc func(progress int, total int)

type ScalingKey added in v0.0.28

type ScalingKey struct{}

Jump to

Keyboard shortcuts

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