Skip to content

Commit

Permalink
平均色匹配修复类型判断
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoZuohong committed Jul 26, 2024
1 parent 83c5256 commit b4f92f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arknights_mower/utils/recognize.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ def find(
h, w, _ = res_img.shape

pos_list = color[res]
if pos_list[0] is not tuple:
if isinstance(pos_list[0], tuple):
pos_list = [color[res]]
for pos in pos_list:
scope = pos, va(pos, (w, h))
Expand Down

0 comments on commit b4f92f1

Please sign in to comment.