Documentation ¶
Index ¶
- type DebugMode
- type SessionExt
- func (sExt *SessionExt) CloseMjpegStream()
- func (sExt *SessionExt) ConnectMjpegStream(httpClient *http.Client, mjpegURL string) (err error)
- func (sExt *SessionExt) Debug(dm DebugMode)
- func (sExt *SessionExt) DoubleTap(pathname string) (err error)
- func (sExt *SessionExt) DoubleTapOffset(pathname string, xOffset, yOffset float64) (err error)
- func (sExt *SessionExt) Drag(pathname string, toX, toY int, pressForDuration ...float64) (err error)
- func (sExt *SessionExt) DragFloat(pathname string, toX, toY float64, pressForDuration ...float64) (err error)
- func (sExt *SessionExt) DragOffset(pathname string, toX, toY int, xOffset, yOffset float64, ...) (err error)
- func (sExt *SessionExt) DragOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64, ...) (err error)
- func (sExt *SessionExt) FindAllImageRect(search string) (rects []image.Rectangle, err error)
- func (sExt *SessionExt) FindImageRectInUIKit(search string) (x, y, width, height float64, err error)
- func (sExt *SessionExt) ForceTouch(pathname string, pressure float64, duration ...float64) (err error)
- func (sExt *SessionExt) ForceTouchOffset(pathname string, pressure, xOffset, yOffset float64, duration ...float64) (err error)
- func (sExt *SessionExt) GesturePassword(pathname string, password ...int) (err error)
- func (sExt *SessionExt) MappingToRectInUIKit(rect image.Rectangle) (x, y, width, height float64)
- func (sExt *SessionExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *SessionExt)
- func (sExt *SessionExt) OnlyOnceThreshold(threshold float64) (newExt *SessionExt)
- func (sExt *SessionExt) PerformActions(actions *gwda.WDAActions) error
- func (sExt *SessionExt) PerformTouchActions(touchActions *gwda.WDATouchActions) error
- func (sExt *SessionExt) Swipe(pathname string, toX, toY int) (err error)
- func (sExt *SessionExt) SwipeDown(pathname string, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeDownOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeFloat(pathname string, toX, toY float64) (err error)
- func (sExt *SessionExt) SwipeLeft(pathname string, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeLeftOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeOffset(pathname string, toX, toY int, xOffset, yOffset float64) (err error)
- func (sExt *SessionExt) SwipeOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64) (err error)
- func (sExt *SessionExt) SwipeRight(pathname string, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeRightOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeUp(pathname string, distance ...float64) (err error)
- func (sExt *SessionExt) SwipeUpOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
- func (sExt *SessionExt) Tap(pathname string) error
- func (sExt *SessionExt) TapOffset(pathname string, xOffset, yOffset float64) (err error)
- func (sExt *SessionExt) TapWithNumber(pathname string, numberOfTaps int) (err error)
- func (sExt *SessionExt) TapWithNumberOffset(pathname string, numberOfTaps int, xOffset, yOffset float64) (err error)
- func (sExt *SessionExt) TouchAndHold(pathname string, duration ...float64) (err error)
- func (sExt *SessionExt) TouchAndHoldOffset(pathname string, xOffset, yOffset float64, duration ...float64) (err error)
- type TemplateMatchMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionExt ¶
type SessionExt struct { MatchMode TemplateMatchMode Threshold float64 // contains filtered or unexported fields }
func Extend ¶
func Extend(session *gwda.Session, threshold float64, matchMode ...TemplateMatchMode) (sExt *SessionExt, err error)
Extend 获得扩展后的 Session, 并指定匹配阀值, 获取当前设备的 Scale, 默认匹配模式为 TmCcoeffNormed, 默认关闭 OpenCV 匹配值计算后的输出
func (*SessionExt) CloseMjpegStream ¶
func (sExt *SessionExt) CloseMjpegStream()
func (*SessionExt) ConnectMjpegStream ¶
func (sExt *SessionExt) ConnectMjpegStream(httpClient *http.Client, mjpegURL string) (err error)
func (*SessionExt) Debug ¶
func (sExt *SessionExt) Debug(dm DebugMode)
func (*SessionExt) DoubleTap ¶
func (sExt *SessionExt) DoubleTap(pathname string) (err error)
func (*SessionExt) DoubleTapOffset ¶
func (sExt *SessionExt) DoubleTapOffset(pathname string, xOffset, yOffset float64) (err error)
func (*SessionExt) Drag ¶
func (sExt *SessionExt) Drag(pathname string, toX, toY int, pressForDuration ...float64) (err error)
func (*SessionExt) DragFloat ¶
func (sExt *SessionExt) DragFloat(pathname string, toX, toY float64, pressForDuration ...float64) (err error)
func (*SessionExt) DragOffset ¶
func (*SessionExt) DragOffsetFloat ¶
func (sExt *SessionExt) DragOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64, pressForDuration ...float64) (err error)
func (*SessionExt) FindAllImageRect ¶
func (sExt *SessionExt) FindAllImageRect(search string) (rects []image.Rectangle, err error)
func (*SessionExt) FindImageRectInUIKit ¶
func (sExt *SessionExt) FindImageRectInUIKit(search string) (x, y, width, height float64, err error)
func (*SessionExt) ForceTouch ¶
func (sExt *SessionExt) ForceTouch(pathname string, pressure float64, duration ...float64) (err error)
func (*SessionExt) ForceTouchOffset ¶
func (sExt *SessionExt) ForceTouchOffset(pathname string, pressure, xOffset, yOffset float64, duration ...float64) (err error)
func (*SessionExt) GesturePassword ¶
func (sExt *SessionExt) GesturePassword(pathname string, password ...int) (err error)
func (*SessionExt) MappingToRectInUIKit ¶
func (sExt *SessionExt) MappingToRectInUIKit(rect image.Rectangle) (x, y, width, height float64)
func (*SessionExt) OnlyOnceMatchMode ¶
func (sExt *SessionExt) OnlyOnceMatchMode(matchMode TemplateMatchMode) (newExt *SessionExt)
func (*SessionExt) OnlyOnceThreshold ¶
func (sExt *SessionExt) OnlyOnceThreshold(threshold float64) (newExt *SessionExt)
func (*SessionExt) PerformActions ¶
func (sExt *SessionExt) PerformActions(actions *gwda.WDAActions) error
func (*SessionExt) PerformTouchActions ¶
func (sExt *SessionExt) PerformTouchActions(touchActions *gwda.WDATouchActions) error
func (*SessionExt) SwipeDown ¶
func (sExt *SessionExt) SwipeDown(pathname string, distance ...float64) (err error)
func (*SessionExt) SwipeDownOffset ¶
func (sExt *SessionExt) SwipeDownOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
func (*SessionExt) SwipeFloat ¶
func (sExt *SessionExt) SwipeFloat(pathname string, toX, toY float64) (err error)
func (*SessionExt) SwipeLeft ¶
func (sExt *SessionExt) SwipeLeft(pathname string, distance ...float64) (err error)
func (*SessionExt) SwipeLeftOffset ¶
func (sExt *SessionExt) SwipeLeftOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
func (*SessionExt) SwipeOffset ¶
func (sExt *SessionExt) SwipeOffset(pathname string, toX, toY int, xOffset, yOffset float64) (err error)
func (*SessionExt) SwipeOffsetFloat ¶
func (sExt *SessionExt) SwipeOffsetFloat(pathname string, toX, toY, xOffset, yOffset float64) (err error)
func (*SessionExt) SwipeRight ¶
func (sExt *SessionExt) SwipeRight(pathname string, distance ...float64) (err error)
func (*SessionExt) SwipeRightOffset ¶
func (sExt *SessionExt) SwipeRightOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
func (*SessionExt) SwipeUp ¶
func (sExt *SessionExt) SwipeUp(pathname string, distance ...float64) (err error)
func (*SessionExt) SwipeUpOffset ¶
func (sExt *SessionExt) SwipeUpOffset(pathname string, xOffset, yOffset float64, distance ...float64) (err error)
func (*SessionExt) Tap ¶
func (sExt *SessionExt) Tap(pathname string) error
func (*SessionExt) TapOffset ¶
func (sExt *SessionExt) TapOffset(pathname string, xOffset, yOffset float64) (err error)
func (*SessionExt) TapWithNumber ¶
func (sExt *SessionExt) TapWithNumber(pathname string, numberOfTaps int) (err error)
TapWithNumber sends one or more taps
func (*SessionExt) TapWithNumberOffset ¶
func (sExt *SessionExt) TapWithNumberOffset(pathname string, numberOfTaps int, xOffset, yOffset float64) (err error)
func (*SessionExt) TouchAndHold ¶
func (sExt *SessionExt) TouchAndHold(pathname string, duration ...float64) (err error)
func (*SessionExt) TouchAndHoldOffset ¶
func (sExt *SessionExt) TouchAndHoldOffset(pathname string, xOffset, yOffset float64, duration ...float64) (err error)
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.