MCPcopy Create free account
hub / github.com/runhey/OnmyojiAutoScript / set_layer_roi

Method set_layer_roi

tasks/Secret/script_task.py:136–138  ·  view source on GitHub ↗
(ocr_target: RuleOcr, roi: tuple)

Source from the content-addressed store, hash-verified

134 :return: 如果找得到返回层数,找不到返回None
135 """
136 def set_layer_roi(ocr_target: RuleOcr, roi: tuple):
137 ocr_target.roi[0] = int(roi[0]) - 225
138 ocr_target.roi[1] = int(roi[1]) - 40
139 def check_layer(ocr_target: RuleOcr, roi=None) -> int or None:
140 #
141 # 手动留了一个bug: 即使匹配到了未通关 但是在判断层数的时候还是会先判断第一个是什么的

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected