feat(task): 培育中支持识别睡意 T 卡(眠気)
This commit is contained in:
parent
9b25098a48
commit
5a6850082e
Binary file not shown.
After Width: | Height: | Size: 957 KiB |
|
@ -0,0 +1 @@
|
|||
{"definitions":{"16fbc93d-b294-4001-b4e9-ee2af181415f":{"name":"InPurodyuusu.T","displayName":"睡意卡字母 T(眠気)","type":"template","annotationId":"16fbc93d-b294-4001-b4e9-ee2af181415f","useHintRect":false}},"annotations":[{"id":"16fbc93d-b294-4001-b4e9-ee2af181415f","type":"rect","data":{"x1":353,"y1":1084,"x2":367,"y2":1099}}]}
|
|
@ -302,6 +302,7 @@ def skill_card_count(img: MatLike | None = None):
|
|||
img = crop(img, y1=0.83, y2=0.90)
|
||||
count = image.raw().count(img, R.InPurodyuusu.A)
|
||||
count += image.raw().count(img, R.InPurodyuusu.M)
|
||||
count += image.raw().count(img, R.InPurodyuusu.T)
|
||||
logger.info("Current skill card count: %d", count)
|
||||
return count
|
||||
|
||||
|
@ -343,7 +344,8 @@ def obtain_cards(img: MatLike | None = None):
|
|||
img = use_screenshot(img)
|
||||
cards_rects = image.find_all_multi([
|
||||
R.InPurodyuusu.A,
|
||||
R.InPurodyuusu.M
|
||||
R.InPurodyuusu.M,
|
||||
R.InPurodyuusu.T
|
||||
])
|
||||
logger.info("Current cards: %s", len(cards_rects))
|
||||
cards = []
|
||||
|
|
Loading…
Reference in New Issue