mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-18 10:21:30 +08:00
Add: W14 maps extracted
- Opt: _extract_stage_name for color just a little bit higher than 235 - Add: LuaLoader
This commit is contained in:
@@ -142,7 +142,7 @@ class CampaignOcr(ModuleBase):
|
||||
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]
|
||||
x_list = np.where(x_color[x_skip:] > 240)[0]
|
||||
if x_list is None or len(x_list) == 0:
|
||||
logger.warning('No interval between digit and text.')
|
||||
area = (0, 0, image.shape[1], image.shape[0])
|
||||
|
||||
Reference in New Issue
Block a user