| 1234567891011121314151617181920212223242526272829303132333435363738 |
- from module.atom.image import RuleImage
- from module.atom.click import RuleClick
- from module.atom.long_click import RuleLongClick
- from module.atom.swipe import RuleSwipe
- from module.atom.ocr import RuleOcr
- from module.atom.list import RuleList
- # This file was automatically generated by ./dev_tools/assets_extract.py.
- # Don't modify it manually.
- class OrochiMoansAssets:
- # Image Rule Assets
- # 战斗结算中的突破券。需要全图匹配,当前match只返回最高相似度区域,因此不支持多张突破券场景
- I_TOPPA_SCROLL = RuleImage(roi_front=(403,179,93,96), roi_back=(0,0,1280,720), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/res_toppa_scroll.png")
- # 场景检测:组队界面(需要自己预先拉好队友)
- I_OROCHI_TEAM = RuleImage(roi_front=(937,591,100,100), roi_back=(937,591,100,100), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/o_form_team.png")
- # 场景检测:进入战斗,但未点开始
- I_OROCHI_IN_FIELD = RuleImage(roi_front=(873,184,62,147), roi_back=(873,184,62,147), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/o_orochi_in_field.png")
- # 场景检测:战斗胜利
- I_OROCHI_SUCCEED = RuleImage(roi_front=(296,33,414,224), roi_back=(296,33,414,224), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/gb_win.png.png")
- # 场景检测:战斗失败
- I_OROCHI_FAILED = RuleImage(roi_front=(413,124,100,100), roi_back=(413,124,100,100), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/gb_false.png")
- # 场景检测:御魂战斗进行中
- I_OROCHI_FIGHTING = RuleImage(roi_front=(89,14,36,36), roi_back=(89,14,36,36), threshold=0.8, method="Template matching", file="./tasks/OrochiMoans/res/gb_friends.png")
- # List Rule Assets
- # 这个是御魂界面选择不同层数的
- L_LAYER_LIST_NEW = RuleList(folder="./tasks/OrochiMoans/res", direction="vertical", mode="ocr", roi_back=(430,190,160,370), size=(45, 88),
- array=["壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾", "悲", "神"])
- # Ocr Rule Assets
- # 突破卷的数量
- O_TOPPA_SCROLL = RuleOcr(roi=(1143,13,80,39), area=(0,0,100,100), mode="DigitCounter", method="Default", keyword="", name="toppa_scroll")
|