1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-15 06:27:20 +08:00

Fix: info_bar_count() reduce

This commit is contained in:
LmeSzinc
2022-12-30 19:58:18 +08:00
parent 0e97e27562
commit f9aefead2d

View File

@@ -41,7 +41,7 @@ class InfoHandler(ModuleBase):
int: int:
""" """
image = self.image_crop(INFO_BAR_AREA) image = self.image_crop(INFO_BAR_AREA)
line = cv2.resize(image, (1, image.shape[0]), interpolation=cv2.INTER_LINEAR) line = cv2.reduce(image, 1, cv2.REDUCE_AVG)
line = color_similarity_2d(line, color=(107, 158, 255))[:, 0] line = color_similarity_2d(line, color=(107, 158, 255))[:, 0]
parameters = { parameters = {