1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-13 11:27:01 +08:00

Opt: Points and Lines class no longer require config

This commit is contained in:
LmeSzinc
2021-06-30 14:11:04 +08:00
parent cf5bfbc9a7
commit f94f3ce955
8 changed files with 46 additions and 47 deletions

View File

@@ -168,7 +168,7 @@ class RewardTacticalClass(UI):
mask = color_similarity_2d(self.image_area(area), color=(255, 255, 255)) > 235
points = np.array(np.where(mask)).T
# Width of card is 200 px
points = Points(points, config=self.config).group(threshold=210)
points = Points(points).group(threshold=210)
card = len(points)
if card == 0:
logger.warning('No student card found.')