GameSentenceMiner 2.18.16__py3-none-any.whl → 2.18.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- GameSentenceMiner/owocr/owocr/ocr.py +3 -2
- GameSentenceMiner/owocr/owocr/run.py +5 -1
- GameSentenceMiner/util/configuration.py +6 -9
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/top_level.txt +0 -0
|
@@ -111,8 +111,9 @@ def post_process(text, keep_blank_lines=False):
|
|
|
111
111
|
text = '\n'.join([''.join(i.split()) for i in text.splitlines()])
|
|
112
112
|
else:
|
|
113
113
|
text = ''.join([''.join(i.split()) for i in text.splitlines()])
|
|
114
|
-
text = text.replace('…', '
|
|
115
|
-
text = re.sub('[・.]{2,}', lambda x: (x.end() - x.start()) * '
|
|
114
|
+
text = text.replace('…', '・・・')
|
|
115
|
+
text = re.sub('[・.]{2,}', lambda x: (x.end() - x.start()) * '・', text)
|
|
116
|
+
text = re.sub(r'・{3,}', '・・・', text)
|
|
116
117
|
text = jaconv.h2z(text, ascii=True, digit=True)
|
|
117
118
|
return text
|
|
118
119
|
|
|
@@ -1392,7 +1392,11 @@ def process_and_write_results(img_or_path, write_to=None, last_result=None, filt
|
|
|
1392
1392
|
# print(engine_index)
|
|
1393
1393
|
|
|
1394
1394
|
if res:
|
|
1395
|
-
|
|
1395
|
+
if isinstance(text, list):
|
|
1396
|
+
for i, line in enumerate(text):
|
|
1397
|
+
text[i] = do_configured_ocr_replacements(line)
|
|
1398
|
+
else:
|
|
1399
|
+
text = do_configured_ocr_replacements(text)
|
|
1396
1400
|
if filtering:
|
|
1397
1401
|
text, orig_text = filtering(text, last_result, engine=engine, is_second_ocr=is_second_ocr)
|
|
1398
1402
|
if get_ocr_language() == "ja" or get_ocr_language() == "zh":
|
|
@@ -888,15 +888,16 @@ class Config:
|
|
|
888
888
|
if profile.advanced.streak_requirement_hours != default_stats.streak_requirement_hours:
|
|
889
889
|
self.stats.streak_requirement_hours = profile.advanced.streak_requirement_hours
|
|
890
890
|
|
|
891
|
+
self.overlay = self.get_config().overlay
|
|
892
|
+
|
|
891
893
|
# Add a way to migrate certain things based on version if needed, also help with better defaults
|
|
892
894
|
if self.version:
|
|
893
|
-
|
|
895
|
+
current_version = get_current_version()
|
|
896
|
+
if self.version != current_version:
|
|
894
897
|
from packaging import version
|
|
895
|
-
logger.info(f"New Config Found: {self.version} != {
|
|
898
|
+
logger.info(f"New Config Found: {self.version} != {current_version}")
|
|
896
899
|
# Handle version mismatch
|
|
897
|
-
changed = False
|
|
898
900
|
if version.parse(self.version) < version.parse("2.18.0"):
|
|
899
|
-
changed = True
|
|
900
901
|
# Example, doesn't need to be done
|
|
901
902
|
for profile in self.configs.values():
|
|
902
903
|
profile.obs.get_game_from_scene = True
|
|
@@ -904,11 +905,7 @@ class Config:
|
|
|
904
905
|
if profile.vad.selected_vad_model == WHISPER and profile.vad.backup_vad_model == SILERO:
|
|
905
906
|
profile.vad.backup_vad_model = OFF
|
|
906
907
|
|
|
907
|
-
|
|
908
|
-
self.save()
|
|
909
|
-
self.overlay = self.get_config().overlay
|
|
910
|
-
|
|
911
|
-
self.version = get_current_version()
|
|
908
|
+
self.save()
|
|
912
909
|
|
|
913
910
|
def save(self):
|
|
914
911
|
with open(get_config_path(), 'w') as file:
|
|
@@ -27,8 +27,8 @@ GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9
|
|
|
27
27
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
|
|
28
28
|
GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
|
|
29
29
|
GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
|
|
30
|
-
GameSentenceMiner/owocr/owocr/ocr.py,sha256=
|
|
31
|
-
GameSentenceMiner/owocr/owocr/run.py,sha256=
|
|
30
|
+
GameSentenceMiner/owocr/owocr/ocr.py,sha256=XR6tbcj8ctDXn8NlpXrRZIel60zj2h3R0NKWBtEE5M4,72273
|
|
31
|
+
GameSentenceMiner/owocr/owocr/run.py,sha256=z3EaF_a5m9T_ZrELYoaAzHPqzTO0cd7MQCndcnWXq_4,82035
|
|
32
32
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
|
|
33
33
|
GameSentenceMiner/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
GameSentenceMiner/tools/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
|
|
@@ -42,7 +42,7 @@ GameSentenceMiner/ui/furigana_filter_preview.py,sha256=DAT2-j6vSDHr9ufk6PiaLikEs
|
|
|
42
42
|
GameSentenceMiner/ui/screenshot_selector.py,sha256=7QvDhOMpA0ej8x_lYtu6fhmrWbM1GCg-dps3XVWwk1Q,8234
|
|
43
43
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
44
|
GameSentenceMiner/util/audio_player.py,sha256=-yFsf0qoTSS1ga5rCmEJZJGUSJzXCvfZHY3t0NxycDk,7896
|
|
45
|
-
GameSentenceMiner/util/configuration.py,sha256=
|
|
45
|
+
GameSentenceMiner/util/configuration.py,sha256=qndhFAN4oC1dawklllS3UBhK2DCVSTloGdZxDoTUGr4,48137
|
|
46
46
|
GameSentenceMiner/util/db.py,sha256=CneZuFGIH6fosHblly4lcrWfU0Qjj5l0coxJy7m1igw,32237
|
|
47
47
|
GameSentenceMiner/util/electron_config.py,sha256=KfeJToeFFVw0IR5MKa-gBzpzaGrU-lyJbR9z-sDEHYU,8767
|
|
48
48
|
GameSentenceMiner/util/ffmpeg.py,sha256=cAzztfY36Xf2WvsJDjavoiMOvA9ac2GVdCrSB4LzHk4,29007
|
|
@@ -135,9 +135,9 @@ GameSentenceMiner/web/templates/components/kanji_grid/thousand_character_classic
|
|
|
135
135
|
GameSentenceMiner/web/templates/components/kanji_grid/wanikani_levels.json,sha256=8wjnnaYQqmho6t5tMxrIAc03512A2tYhQh5dfsQnfAM,11372
|
|
136
136
|
GameSentenceMiner/web/templates/components/kanji_grid/words_hk_frequency_list.json,sha256=wRkqZNPzz6DT9OTPHpXwfqW96Qb96stCQNNgOL-ZdKk,17535
|
|
137
137
|
GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
138
|
-
gamesentenceminer-2.18.
|
|
139
|
-
gamesentenceminer-2.18.
|
|
140
|
-
gamesentenceminer-2.18.
|
|
141
|
-
gamesentenceminer-2.18.
|
|
142
|
-
gamesentenceminer-2.18.
|
|
143
|
-
gamesentenceminer-2.18.
|
|
138
|
+
gamesentenceminer-2.18.17.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
139
|
+
gamesentenceminer-2.18.17.dist-info/METADATA,sha256=P3n2dpzmGimmdKfstygPWNvooSBB_lHKHgzNA961zA8,7488
|
|
140
|
+
gamesentenceminer-2.18.17.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
141
|
+
gamesentenceminer-2.18.17.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
|
142
|
+
gamesentenceminer-2.18.17.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
|
143
|
+
gamesentenceminer-2.18.17.dist-info/RECORD,,
|
|
File without changes
|
{gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{gamesentenceminer-2.18.16.dist-info → gamesentenceminer-2.18.17.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|