cv

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateScaling

func CalculateScaling(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 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) 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(static image.Image, dynamic image.Image) (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)

Jump to

Keyboard shortcuts

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