GameSentenceMiner 2.13.2.post1__tar.gz → 2.13.3__tar.gz
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-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/owocr_helper.py +34 -2
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/PKG-INFO +1 -1
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/PKG-INFO +1 -1
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/pyproject.toml +1 -1
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ai/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ai/ai_prompting.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/anki.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon128.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon256.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon32.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon512.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon64.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/pickaxe.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/config_gui.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/gametext.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/gsm.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/en_us.json +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/ja_jp.json +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/zh_cn.json +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/obs.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/gsm_ocr_config.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/ocrconfig.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/owocr_area_selector.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/ss_picker.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/__main__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/config.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/lens_betterproto.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/ocr.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/run.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/audio_offset_selector.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/communication/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/communication/send.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/communication/websocket.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/configuration.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/downloader/Untitled_json.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/downloader/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/downloader/download_tools.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/downloader/oneocr_dl.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/electron_config.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/ffmpeg.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/gsm_utils.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/model.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/notification.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/package.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/ss_selector.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/text_log.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/window_transparency.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/vad.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/service.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/apple-touch-icon.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/favicon-96x96.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/favicon.ico +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/favicon.svg +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/site.webmanifest +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/style.css +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/web-app-manifest-192x192.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/web-app-manifest-512x512.png +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/templates/__init__.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/templates/index.html +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/templates/text_replacements.html +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/templates/utility.html +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/texthooking_page.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/wip/get_overlay_coords.py +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/SOURCES.txt +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/dependency_links.txt +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/entry_points.txt +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/requires.txt +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/top_level.txt +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/LICENSE +0 -0
- {gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/setup.cfg +0 -0
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/owocr_helper.py
RENAMED
@@ -53,6 +53,7 @@ def get_ocr_config(window=None, use_window_for_config=False) -> OCRConfig:
|
|
53
53
|
"""Loads and updates screen capture areas from the corresponding JSON file."""
|
54
54
|
ocr_config_dir = get_ocr_config_path()
|
55
55
|
obs.connect_to_obs_sync(retry=0)
|
56
|
+
obs.update_current_game()
|
56
57
|
if use_window_for_config and window:
|
57
58
|
scene = sanitize_filename(window)
|
58
59
|
else:
|
@@ -161,7 +162,7 @@ class WebsocketServerThread(threading.Thread):
|
|
161
162
|
async def send_text(self, text, line_time: datetime):
|
162
163
|
if text:
|
163
164
|
return asyncio.run_coroutine_threadsafe(
|
164
|
-
self.send_text_coroutine(json.dumps({"sentence": text, "time": line_time.isoformat()})), self.loop)
|
165
|
+
self.send_text_coroutine(json.dumps({"sentence": text, "time": line_time.isoformat(), "process_path": obs.get_current_game()})), self.loop)
|
165
166
|
|
166
167
|
def stop_server(self):
|
167
168
|
self.loop.call_soon_threadsafe(self._stop_event.set)
|
@@ -291,6 +292,38 @@ def reset_callback_vars():
|
|
291
292
|
previous_text_list = []
|
292
293
|
last_ocr2_result = ""
|
293
294
|
run.set_last_image(None)
|
295
|
+
|
296
|
+
# class TwoPassOCRHandler:
|
297
|
+
# def __init__(self, ocr1, ocr2):
|
298
|
+
# self.ocr1 = ocr1
|
299
|
+
# self.ocr2 = ocr2
|
300
|
+
# self.second_ocr_queue = queue.Queue()
|
301
|
+
# self.previous_text = None
|
302
|
+
# self.previous_orig_text = ""
|
303
|
+
# self.previous_img = None
|
304
|
+
# self.text_stable_start_time = None
|
305
|
+
# self.last_oneocr_time = None
|
306
|
+
# self.force_stable = False
|
307
|
+
# self.previous_ocr1_result = ""
|
308
|
+
# self.last_sent_result = ""
|
309
|
+
# self.previous_text_list = []
|
310
|
+
|
311
|
+
# def check_first_ocr(self, text, orig_text, time, img=None, came_from_ss=False, filtering=None, crop_coords=None):
|
312
|
+
# if not twopassocr or not ocr2:
|
313
|
+
# return text_callback(text, orig_text, time, img=img, came_from_ss=came_from_ss, filtering=filtering, crop_coords=crop_coords)
|
314
|
+
|
315
|
+
# text_callback(text, orig_text, time, img=img, came_from_ss=came_from_ss, filtering=filtering, crop_coords=crop_coords)
|
316
|
+
|
317
|
+
# def set_ocr_ocr1(self, ocr1):
|
318
|
+
# self.ocr1 = ocr1
|
319
|
+
# def set_ocr_ocr2(self, ocr2):
|
320
|
+
# self.ocr2 = ocr2
|
321
|
+
|
322
|
+
# def get_ocr_ocr1(self):
|
323
|
+
# return self.ocr1
|
324
|
+
|
325
|
+
# def get_ocr_ocr2(self):
|
326
|
+
# return self.ocr2
|
294
327
|
|
295
328
|
def text_callback(text, orig_text, time, img=None, came_from_ss=False, filtering=None, crop_coords=None):
|
296
329
|
global twopassocr, ocr2, previous_text, last_oneocr_time, text_stable_start_time, previous_orig_text, previous_img, force_stable, previous_ocr1_result, previous_text_list, last_sent_result
|
@@ -305,7 +338,6 @@ def text_callback(text, orig_text, time, img=None, came_from_ss=False, filtering
|
|
305
338
|
|
306
339
|
line_start_time = time if time else datetime.now()
|
307
340
|
|
308
|
-
|
309
341
|
if manual or not get_ocr_two_pass_ocr():
|
310
342
|
if compare_ocr_results(last_sent_result, text, 80):
|
311
343
|
if text:
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ai/__init__.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ai/ai_prompting.py
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/__init__.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon128.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon256.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon32.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon512.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/icon64.png
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/assets/pickaxe.png
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/en_us.json
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/ja_jp.json
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/locales/zh_cn.json
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/__init__.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/gsm_ocr_config.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/ocrconfig.py
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/ocr/ss_picker.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/config.py
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/ocr.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/owocr/owocr/run.py
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/configuration.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/ffmpeg.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/gsm_utils.py
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/notification.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/package.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/ss_selector.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/util/text_log.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/__init__.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/service.py
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/favicon.ico
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/favicon.svg
RENAMED
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner/web/static/style.css
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/requires.txt
RENAMED
File without changes
|
{gamesentenceminer-2.13.2.post1 → gamesentenceminer-2.13.3}/GameSentenceMiner.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|