From 3c36063b330adc61b08ebf80c85971d45a254f21 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 22 Jun 2021 13:54:55 +0800 Subject: [PATCH] Fix: Better recognise the letter "1" in shop With threshold 64, it looks more like AgencyFB-Regular --- module/statistics/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/statistics/item.py b/module/statistics/item.py index dce1c0a12..0c3f2fed5 100644 --- a/module/statistics/item.py +++ b/module/statistics/item.py @@ -21,7 +21,7 @@ class AmountOcr(Digit): AMOUNT_OCR = AmountOcr([], threshold=96, name='Amount_ocr') -PRICE_OCR = Digit([], letter=(255, 223, 57), threshold=128, name='Price_ocr') +PRICE_OCR = Digit([], letter=(255, 223, 57), threshold=64, name='Price_ocr') class Item: