GameSentenceMiner 2.13.3__py3-none-any.whl → 2.13.4__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/ocr/owocr_area_selector.py +3 -2
- GameSentenceMiner/owocr/owocr/ocr.py +3 -1
- GameSentenceMiner/owocr/owocr/run.py +3 -3
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/RECORD +9 -9
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.13.3.dist-info → gamesentenceminer-2.13.4.dist-info}/top_level.txt +0 -0
@@ -129,8 +129,9 @@ class ScreenSelector:
|
|
129
129
|
# 3:2 - use 1080x720
|
130
130
|
return 1080, 720
|
131
131
|
else:
|
132
|
-
# Default/fallback - use
|
133
|
-
|
132
|
+
# Default/fallback - use original resolution
|
133
|
+
print(f"Unrecognized aspect ratio {aspect_ratio}. Using original resolution.")
|
134
|
+
return self.width, self.height
|
134
135
|
|
135
136
|
def _find_target_window(self):
|
136
137
|
try:
|
@@ -17,7 +17,7 @@ from PIL import Image
|
|
17
17
|
from loguru import logger
|
18
18
|
import requests
|
19
19
|
|
20
|
-
from GameSentenceMiner.util.electron_config import get_ocr_language
|
20
|
+
from GameSentenceMiner.util.electron_config import get_ocr_language, get_furigana_filter_sensitivity
|
21
21
|
|
22
22
|
# from GameSentenceMiner.util.configuration import get_temporary_directory
|
23
23
|
|
@@ -275,6 +275,7 @@ class GoogleLens:
|
|
275
275
|
logger.info('Google Lens ready')
|
276
276
|
|
277
277
|
def __call__(self, img, furigana_filter_sensitivity=0, return_coords=False):
|
278
|
+
furigana_filter_sensitivity = get_furigana_filter_sensitivity()
|
278
279
|
lang = get_ocr_language()
|
279
280
|
img, is_path = input_to_pil_image(img)
|
280
281
|
if lang != self.initial_lang:
|
@@ -895,6 +896,7 @@ class OneOCR:
|
|
895
896
|
|
896
897
|
def __call__(self, img, furigana_filter_sensitivity=0, return_coords=False):
|
897
898
|
lang = get_ocr_language()
|
899
|
+
furigana_filter_sensitivity = get_furigana_filter_sensitivity()
|
898
900
|
if lang != self.initial_lang:
|
899
901
|
self.initial_lang = lang
|
900
902
|
self.regex = get_regex(lang)
|
@@ -876,9 +876,9 @@ class OBSScreenshotThread(threading.Thread):
|
|
876
876
|
logger.info("Using standard aspect ratio scaling (3:2).")
|
877
877
|
return 1080, 720
|
878
878
|
else:
|
879
|
-
# Default
|
880
|
-
logger.info("Using default aspect ratio scaling (
|
881
|
-
return
|
879
|
+
# Default fallback - use original resolution
|
880
|
+
logger.info("Using default aspect ratio scaling (original resolution).")
|
881
|
+
return self.width, self.height
|
882
882
|
|
883
883
|
def run(self):
|
884
884
|
global last_image
|
@@ -21,15 +21,15 @@ GameSentenceMiner/locales/zh_cn.json,sha256=h-YRSz2XN_TkymjkAH1MQ9KqGLE9_7Ru-N4y
|
|
21
21
|
GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=Ezj-0k6Wo-una91FvYhMp6KGkRhWYihXzLAoh_Wu2xY,5329
|
23
23
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
24
|
-
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=
|
24
|
+
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=EIZwE_jqhW0dXTHa4pdtlLEEqwT8WjWPE9Nie1uXlJU,27339
|
25
25
|
GameSentenceMiner/ocr/owocr_helper.py,sha256=EDKDhmZ0kF1xNmw2obZwAdXj-L-zDK09JGZPTJBja-c,26523
|
26
26
|
GameSentenceMiner/ocr/ss_picker.py,sha256=0IhxUdaKruFpZyBL-8SpxWg7bPrlGpy3lhTcMMZ5rwo,5224
|
27
27
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
|
28
28
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
|
29
29
|
GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
|
30
30
|
GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
|
31
|
-
GameSentenceMiner/owocr/owocr/ocr.py,sha256=
|
32
|
-
GameSentenceMiner/owocr/owocr/run.py,sha256=
|
31
|
+
GameSentenceMiner/owocr/owocr/ocr.py,sha256=NHo-sjE_ZGUjPzzJqMDmFs29xbIvvQQyCBRQ61PTyfo,62221
|
32
|
+
GameSentenceMiner/owocr/owocr/run.py,sha256=5UrsrYYgldutU1Dv71Wlpp-T-D9lUApxu8Y9itkALKM,68168
|
33
33
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
|
34
34
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
35
35
|
GameSentenceMiner/util/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
|
@@ -67,9 +67,9 @@ GameSentenceMiner/web/templates/index.html,sha256=Gv3CJvNnhAzIVV_QxhNq4OD-pXDt1v
|
|
67
67
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
68
68
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
69
69
|
GameSentenceMiner/wip/get_overlay_coords.py,sha256=nJRytHJwUBToXeAIkf45HP7Yv42YO-ILbP5h8GVeE2Q,19791
|
70
|
-
gamesentenceminer-2.13.
|
71
|
-
gamesentenceminer-2.13.
|
72
|
-
gamesentenceminer-2.13.
|
73
|
-
gamesentenceminer-2.13.
|
74
|
-
gamesentenceminer-2.13.
|
75
|
-
gamesentenceminer-2.13.
|
70
|
+
gamesentenceminer-2.13.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
71
|
+
gamesentenceminer-2.13.4.dist-info/METADATA,sha256=0ddqVtOKeBRZgZIlt1Z8IPjGsDW-mqvDgJWY4YQr5-w,1463
|
72
|
+
gamesentenceminer-2.13.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
73
|
+
gamesentenceminer-2.13.4.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
74
|
+
gamesentenceminer-2.13.4.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
75
|
+
gamesentenceminer-2.13.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|