mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 04:37:44 +08:00
Fix: Update func predict_valid, distinguish the selling status
This commit is contained in:
@@ -47,12 +47,8 @@ FILTER = Filter(FILTER_REGEX, FILTER_ATTR)
|
|||||||
|
|
||||||
class ShopItem_250814(Item):
|
class ShopItem_250814(Item):
|
||||||
def predict_valid(self):
|
def predict_valid(self):
|
||||||
"""
|
mean = np.mean(rgb2gray(self.image) > 139)
|
||||||
2025-08-14 shop ui update, calculate variance of sold items,
|
return mean > 0.23
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
class ShopItemGrid(ItemGrid):
|
class ShopItemGrid(ItemGrid):
|
||||||
|
|||||||
Reference in New Issue
Block a user