We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def loop_find_assign(query, width, height, origin: tuple, timeout=ST.FIND_TIMEOUT, threshold=None, interval=0.2, intervalfunc=None): start_time = time.time() while True: screen = G.DEVICE.assign_snapshot( width, height, origin, filename=None, quality=ST.SNAPSHOT_QUALITY) if screen is None: G.LOGGING.warning("Screen is None, may be locked") else: if threshold: query.threshold = threshold match_pos = query.match_in(screen) if match_pos: try_log_screen(screen) return match_pos screen 截取到目标区域的图片,灰色有图案,query纯灰色的图query.match_in(screen),match_pos 还是返回了值。
The text was updated successfully, but these errors were encountered:
您好,您描述想要实现的功能应该属于Airtest,可以参考官网文档,根据我对官网文档的理解应该是支持的: https://airtest.doc.io.netease.com/IDEdocs/3.6settings/2_script_settings/#rgb
Sorry, something went wrong.
好的谢谢
No branches or pull requests
def loop_find_assign(query, width, height, origin: tuple, timeout=ST.FIND_TIMEOUT, threshold=None, interval=0.2, intervalfunc=None):
start_time = time.time()
while True:
screen = G.DEVICE.assign_snapshot( width, height, origin, filename=None, quality=ST.SNAPSHOT_QUALITY)
if screen is None:
G.LOGGING.warning("Screen is None, may be locked")
else:
if threshold:
query.threshold = threshold
match_pos = query.match_in(screen)
if match_pos:
try_log_screen(screen)
return match_pos screen 截取到目标区域的图片,灰色有图案,query纯灰色的图query.match_in(screen),match_pos 还是返回了值。
The text was updated successfully, but these errors were encountered: