mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 10:58:21 +08:00
Add: 适配了第四章
- 稍微移动了章节OCR的位置, 因为4-4会识别为14-4 - 针对第四章这种偏红的地图做了一些优化 - 稍微延长了敌人刷新时的等待时间 - 更改出错截图文件名为格式化的时间
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import os
|
||||
import time
|
||||
from datetime import datetime
|
||||
from io import BytesIO
|
||||
|
||||
from PIL import Image
|
||||
@@ -63,7 +64,7 @@ class Screenshot(Connection):
|
||||
|
||||
self.image.load()
|
||||
if self.config.ENABLE_ERROR_LOG_AND_SCREENSHOT_SAVE:
|
||||
logger.screenshot_deque.append({'time': int(time.time() * 1000), 'image': self.image})
|
||||
logger.screenshot_deque.append({'time': datetime.now(), 'image': self.image})
|
||||
return self.image
|
||||
|
||||
def save_screenshot(self, genre='items'):
|
||||
|
||||
Reference in New Issue
Block a user