mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 04:37:44 +08:00
[TW] Temporary fix for project name recognition
At this moment, OCR fails frequently to identify the G-type and potentially Q-type projects in Research Academy. It often misses the initial letter when predicting the name of the projects. Adding it manually for now.
This commit is contained in:
@@ -410,6 +410,15 @@ class ResearchProject:
|
|||||||
if (data['series'] == series) and (data['name'] == name):
|
if (data['series'] == series) and (data['name'] == name):
|
||||||
yield data
|
yield data
|
||||||
|
|
||||||
|
if name[0].isdigit():
|
||||||
|
for t in 'QG':
|
||||||
|
name1 = f'{t}-{self.name}'
|
||||||
|
logger.info(f'Testing the most similar candidate {name1}')
|
||||||
|
for data in LIST_RESEARCH_PROJECT:
|
||||||
|
if (data['series'] == series) and (data['name'] == name1):
|
||||||
|
self.name = name1
|
||||||
|
yield data
|
||||||
|
|
||||||
if name.startswith('D'):
|
if name.startswith('D'):
|
||||||
# Letter 'C' may recognized as 'D', because project card is shining.
|
# Letter 'C' may recognized as 'D', because project card is shining.
|
||||||
name1 = 'C' + self.name[1:]
|
name1 = 'C' + self.name[1:]
|
||||||
|
|||||||
Reference in New Issue
Block a user