diff --git a/module/shop/base.py b/module/shop/base.py index 9be752558..f9aea581d 100644 --- a/module/shop/base.py +++ b/module/shop/base.py @@ -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):