GameSentenceMiner 2.13.4.post1__py3-none-any.whl → 2.13.4.post2__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.
@@ -105,7 +105,7 @@ class ScreenSelector:
105
105
 
106
106
  def scale_down_width_height(self, width, height):
107
107
  if width == 0 or height == 0:
108
- return self.width, self.height
108
+ return width, height
109
109
  aspect_ratio = width / height
110
110
  if aspect_ratio > 2.66:
111
111
  # Ultra-wide (32:9) - use 1920x540
@@ -131,7 +131,7 @@ class ScreenSelector:
131
131
  else:
132
132
  # Default/fallback - use original resolution
133
133
  print(f"Unrecognized aspect ratio {aspect_ratio}. Using original resolution.")
134
- return self.width, self.height
134
+ return width, height
135
135
 
136
136
  def _find_target_window(self):
137
137
  try:
@@ -878,7 +878,7 @@ class OBSScreenshotThread(threading.Thread):
878
878
  else:
879
879
  # Default fallback - use original resolution
880
880
  logger.info("Using default aspect ratio scaling (original resolution).")
881
- return self.width, self.height
881
+ return width, height
882
882
 
883
883
  def run(self):
884
884
  global last_image
@@ -888,6 +888,7 @@ class OBSScreenshotThread(threading.Thread):
888
888
  def init_config(source=None, scene=None):
889
889
  obs.update_current_game()
890
890
  self.current_source = source if source else obs.get_active_source()
891
+ logger.info(f"Current OBS source: {self.current_source}")
891
892
  self.source_width = self.current_source.get("sceneItemTransform").get("sourceWidth") or self.width
892
893
  self.source_height = self.current_source.get("sceneItemTransform").get("sourceHeight") or self.height
893
894
  if self.source_width and self.source_height:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GameSentenceMiner
3
- Version: 2.13.4.post1
3
+ Version: 2.13.4.post2
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,7 +21,7 @@ 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=EIZwE_jqhW0dXTHa4pdtlLEEqwT8WjWPE9Nie1uXlJU,27339
24
+ GameSentenceMiner/ocr/owocr_area_selector.py,sha256=tlzQp0uVT-OdM99IqycA58hBbVb4c8LdTAope2hUXWg,27319
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
@@ -29,7 +29,7 @@ GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvB
29
29
  GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
30
30
  GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
31
31
  GameSentenceMiner/owocr/owocr/ocr.py,sha256=NHo-sjE_ZGUjPzzJqMDmFs29xbIvvQQyCBRQ61PTyfo,62221
32
- GameSentenceMiner/owocr/owocr/run.py,sha256=5UrsrYYgldutU1Dv71Wlpp-T-D9lUApxu8Y9itkALKM,68168
32
+ GameSentenceMiner/owocr/owocr/run.py,sha256=ex0TZp3WTN2qTjrZ5D3Q-Gma4iZ0NPXGaHddTPIqRYs,68229
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.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,,
70
+ gamesentenceminer-2.13.4.post2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
71
+ gamesentenceminer-2.13.4.post2.dist-info/METADATA,sha256=hTRHD0U9JWSUrAbWNaNXVd8QnIg6FwiUxL4Oge-d-2s,1469
72
+ gamesentenceminer-2.13.4.post2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
73
+ gamesentenceminer-2.13.4.post2.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
74
+ gamesentenceminer-2.13.4.post2.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
75
+ gamesentenceminer-2.13.4.post2.dist-info/RECORD,,