Documentation ¶
Index ¶
- Constants
- func Debug(dm DebugMode)
- func FindAllImageLocationsFromDisk(source, search string, threshold float32, matchMode ...TemplateMatchMode) (locs []image.Point, err error)
- func FindAllImageLocationsFromRaw(source, search *bytes.Buffer, threshold float32, ...) (locs []image.Point, err error)
- func FindAllImageRectsFromDisk(source, search string, threshold float32, matchMode ...TemplateMatchMode) (rects []image.Rectangle, err error)
- func FindAllImageRectsFromRaw(source, search *bytes.Buffer, threshold float32, ...) (rects []image.Rectangle, err error)
- func FindImageLocationFromDisk(source, search string, threshold float32, matchMode ...TemplateMatchMode) (loc image.Point, err error)
- func FindImageLocationFromRaw(source, search *bytes.Buffer, threshold float32, ...) (loc image.Point, err error)
- func FindImageRectFromDisk(source, search string, threshold float32, matchMode ...TemplateMatchMode) (rect image.Rectangle, err error)
- func FindImageRectFromRaw(source, search *bytes.Buffer, threshold float32, ...) (rect image.Rectangle, err error)
- type DebugMode
- type TemplateMatchMode
Constants ¶
View Source
const DefaultMatchMode = TmCcoeffNormed
Variables ¶
This section is empty.
Functions ¶
func FindImageRectFromDisk ¶
func FindImageRectFromRaw ¶
Types ¶
type TemplateMatchMode ¶
type TemplateMatchMode int
TemplateMatchMode is the type of the template matching operation.
const ( // TmSqdiff maps to TM_SQDIFF TmSqdiff TemplateMatchMode = iota // TmSqdiffNormed maps to TM_SQDIFF_NORMED TmSqdiffNormed // TmCcorr maps to TM_CCORR TmCcorr // TmCcorrNormed maps to TM_CCORR_NORMED TmCcorrNormed // TmCcoeff maps to TM_CCOEFF TmCcoeff // TmCcoeffNormed maps to TM_CCOEFF_NORMED TmCcoeffNormed )
Click to show internal directories.
Click to hide internal directories.