1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 20:58:19 +08:00

Fix: 修复开荒

- 修复低级图出BOSS后报错的问题
- 修复了开荒进度0%时的章节名OCR
- 修复打完BOSS有时会卡住的问题
This commit is contained in:
LmeSzinc
2020-04-27 19:32:58 +08:00
parent 57f578686e
commit fc84f5e610
7 changed files with 16 additions and 9 deletions

View File

@@ -94,7 +94,7 @@ class CampaignOcr:
@staticmethod
def extract_stage_name(image):
x_skip = 7
x_skip = 10
interval = 5
x_color = np.convolve(np.mean(image, axis=0), np.ones(interval), 'valid') / interval
x_list = np.where(x_color[x_skip:] > 235)[0]