Documentation
¶
Index ¶
- type DebugMode
- type DriverExt
- func (dExt *DriverExt) Debug(dm DebugMode)
- func (dExt *DriverExt) Drag(pathname string, toX, toY int, steps ...int) (err error)
- func (dExt *DriverExt) DragFloat(pathname string, toX, toY float64, steps ...int) (err error)
- func (dExt *DriverExt) DragOffset(pathname string, toX, toY int, xOffset, yOffset float64, steps ...int) (err error)
- func (dExt *DriverExt) DragOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64, steps ...int) (err error)
- func (dExt *DriverExt) FindImageRectInUIKit(search string) (x, y, width, height float64, err error)
- func (dExt *DriverExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *DriverExt)
- func (dExt *DriverExt) OnlyOnceThreshold(threshold float64) (newExt *DriverExt)
- func (dExt *DriverExt) Swipe(pathname string, toX, toY int) (err error)
- func (dExt *DriverExt) SwipeDown(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeDownOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeFloat(pathname string, toX, toY float64) (err error)
- func (dExt *DriverExt) SwipeLeft(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeLeftOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeOffset(pathname string, toX, toY int, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) SwipeOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64) (err error)
- func (dExt *DriverExt) SwipeRight(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeRightOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeUp(pathname string, distance ...float64) (err error)
- func (dExt *DriverExt) SwipeUpOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (dExt *DriverExt) Tap(pathname string) error
- func (dExt *DriverExt) TapOffset(pathname string, xOffset, yOffset float64) (err error)
- type TemplateMatchMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverExt ¶
type DriverExt struct { // scale float64 MatchMode TemplateMatchMode Threshold float64 // contains filtered or unexported fields }
func Extend ¶
func Extend(driver *guia2.Driver, threshold float64, matchMode ...TemplateMatchMode) (dExt *DriverExt, err error)
Extend 获得扩展后的 Driver, 并指定匹配阀值, 默认匹配模式为 TmCcoeffNormed, 默认关闭 OpenCV 匹配值计算后的输出
func (*DriverExt) DragOffset ¶
func (*DriverExt) DragOffsetFloat ¶
func (*DriverExt) FindImageRectInUIKit ¶
func (*DriverExt) OnlyOnceMatchMode ¶
func (dExt *DriverExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *DriverExt)
func (*DriverExt) OnlyOnceThreshold ¶
func (*DriverExt) SwipeDownOffset ¶
func (*DriverExt) SwipeFloat ¶
func (*DriverExt) SwipeLeftOffset ¶
func (*DriverExt) SwipeOffset ¶
func (*DriverExt) SwipeOffsetFloat ¶
func (*DriverExt) SwipeRight ¶
func (*DriverExt) SwipeRightOffset ¶
func (*DriverExt) SwipeUpOffset ¶
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.