GameSentenceMiner 2.13.3__py3-none-any.whl → 2.13.4.post1__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.
@@ -129,8 +129,9 @@ class ScreenSelector:
129
129
  # 3:2 - use 1080x720
130
130
  return 1080, 720
131
131
  else:
132
- # Default/fallback - use 1280x720
133
- return 1280, 720
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/fallback - use 1280x720
880
- logger.info("Using default aspect ratio scaling (1280x720).")
881
- return 1280, 720
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
@@ -231,6 +231,9 @@ def get_ocr_keep_newline():
231
231
  def get_ocr_use_obs_as_source():
232
232
  return electron_store.data.OCR.useObsAsSource
233
233
 
234
+ def get_furigana_filter_sensitivity() -> int:
235
+ return electron_store.data.OCR.furigana_filter_sensitivity
236
+
234
237
  def has_ocr_config_changed() -> bool:
235
238
  global electron_store
236
239
  if not os.path.exists(electron_store.config_path):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.13.3
3
+ Version: 2.13.4.post1
4
4
  Summary: A tool for mining sentences from games. Update: Overlay?
5
5
  Author-email: Beangate <bpwhelan95@gmail.com>
6
6
  License: MIT License
@@ -21,20 +21,20 @@ 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=BgLsUTWIWXTiwApuj5BZtNu1_wpVdODOIy5GAw3G6jg,27223
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=Vi3s4WLEY_wxQSH7sE19_PXUM2BU_lv-OE7YmtLaBRQ,62042
32
- GameSentenceMiner/owocr/owocr/run.py,sha256=We3832iAXXSoJnjlTrI72jhUuMoxRQ_lbaz4TTjtyBc,68132
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
36
36
  GameSentenceMiner/util/configuration.py,sha256=DWqwhEaCUoTYZiahAK151Upagw8maxRLsKIwemJ2ssg,37337
37
- GameSentenceMiner/util/electron_config.py,sha256=8LZwl-T_uF5z_ig-IZcm9QI-VKaD7zaHX9u6MaLYuo4,8648
37
+ GameSentenceMiner/util/electron_config.py,sha256=9CA27nzEFlxezzDqOPHxeD4BdJ093AnSJ9DJTcwWPsM,8762
38
38
  GameSentenceMiner/util/ffmpeg.py,sha256=t0tflxq170n8PZKkdw8fTZIUQfXD0p_qARa9JTdhBTc,21530
39
39
  GameSentenceMiner/util/gsm_utils.py,sha256=iRyLVcodMptRhkCzLf3hyqc6_RCktXnwApi6mLju6oQ,11565
40
40
  GameSentenceMiner/util/model.py,sha256=hmA_seopP2bK40v9T4ulua9TrAeWtbkdCv-sTBPBQDk,6660
@@ -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.3.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
71
- gamesentenceminer-2.13.3.dist-info/METADATA,sha256=AZNqvNeFlhNBDg2mcmO2hFYvR18DgQb_pTBIonGBPyk,1463
72
- gamesentenceminer-2.13.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
73
- gamesentenceminer-2.13.3.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
74
- gamesentenceminer-2.13.3.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
75
- gamesentenceminer-2.13.3.dist-info/RECORD,,
70
+ gamesentenceminer-2.13.4.post1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
71
+ gamesentenceminer-2.13.4.post1.dist-info/METADATA,sha256=nUSeQ5YUkvTIaro2TeYjCLfKtWub7hJVhQRkpGxLS-k,1469
72
+ gamesentenceminer-2.13.4.post1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
73
+ gamesentenceminer-2.13.4.post1.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
74
+ gamesentenceminer-2.13.4.post1.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
75
+ gamesentenceminer-2.13.4.post1.dist-info/RECORD,,