Merge branch 'master' into app

This commit is contained in:
LmeSzinc 2021-09-25 13:27:39 +08:00
commit a77f4095c3

View File

@ -90,6 +90,8 @@ class CampaignOcr(ModuleBase):
button_name = button.crop(area=name_area, image=image)
name = extract_letters(button_name.image, letter=name_letter, threshold=name_thresh)
button_name = button_name.crop(area=self._extract_stage_name(name))
if not len(button.color):
button.load_color(image)
button.area = button_name.area
digits.append(button)