mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Update func predict_valid, distinguish the selling status
This commit is contained in:
parent
55c37475f1
commit
ef22869306
@ -47,12 +47,8 @@ FILTER = Filter(FILTER_REGEX, FILTER_ATTR)
|
||||
|
||||
class ShopItem_250814(Item):
|
||||
def predict_valid(self):
|
||||
"""
|
||||
2025-08-14 shop ui update, calculate variance of sold items,
|
||||
Select the sold xx with a variance of 1298, set threshold to 1400,
|
||||
other unsold items are generally above 1700
|
||||
"""
|
||||
return np.var(rgb2gray(self.image)) > 1400
|
||||
mean = np.mean(rgb2gray(self.image) > 139)
|
||||
return mean > 0.23
|
||||
|
||||
|
||||
class ShopItemGrid(ItemGrid):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user