GameSentenceMiner 2.14.11__py3-none-any.whl → 2.14.13__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_helper.py +2 -8
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/RECORD +7 -7
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/top_level.txt +0 -0
@@ -476,7 +476,6 @@ def add_ss_hotkey(ss_hotkey="ctrl+shift+g"):
|
|
476
476
|
img = run.apply_ocr_config_to_image(img, ocr_config, is_secondary=True)
|
477
477
|
do_second_ocr("", datetime.now(), img, TextFiltering(lang=get_ocr_language()), ignore_furigana_filter=True, ignore_previous_result=True)
|
478
478
|
|
479
|
-
secret_ss_hotkey = "F14"
|
480
479
|
filtering = TextFiltering(lang=get_ocr_language())
|
481
480
|
cropper = ScreenCropper()
|
482
481
|
def capture():
|
@@ -491,31 +490,26 @@ def add_ss_hotkey(ss_hotkey="ctrl+shift+g"):
|
|
491
490
|
img_bytes = mss.tools.to_png(img.rgb, img.size)
|
492
491
|
do_second_ocr("", datetime.now(), img_bytes, filtering, ignore_furigana_filter=True, ignore_previous_result=True)
|
493
492
|
hotkey_reg = None
|
493
|
+
secondary_hotkey_reg = None
|
494
494
|
try:
|
495
495
|
hotkey_reg = keyboard.add_hotkey(ss_hotkey, capture)
|
496
496
|
if not manual:
|
497
497
|
secondary_hotkey_reg = keyboard.add_hotkey(get_ocr_manual_ocr_hotkey().lower(), ocr_secondary_rectangles)
|
498
|
-
if "f13" in ss_hotkey.lower():
|
499
|
-
secret_hotkey_reg = keyboard.add_hotkey(secret_ss_hotkey, capture_main_monitor)
|
500
498
|
print(f"Press {ss_hotkey} to take a screenshot.")
|
501
499
|
except Exception as e:
|
502
500
|
if hotkey_reg:
|
503
501
|
keyboard.remove_hotkey(hotkey_reg)
|
504
502
|
if secondary_hotkey_reg:
|
505
503
|
keyboard.remove_hotkey(secondary_hotkey_reg)
|
506
|
-
if secret_hotkey_reg:
|
507
|
-
keyboard.remove_hotkey(secret_hotkey_reg)
|
508
504
|
logger.error(f"Error setting up screenshot hotkey with keyboard, Attempting Backup: {e}")
|
509
505
|
logger.debug(e)
|
510
506
|
pynput_hotkey = ss_hotkey.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
|
511
|
-
|
512
|
-
secondary_ss_hotkey = secondary_hotkey_reg.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
|
507
|
+
secondary_ss_hotkey = secondary_ss_hotkey.replace("ctrl", "<ctrl>").replace("shift", "<shift>").replace("alt", "<alt>")
|
513
508
|
try:
|
514
509
|
from pynput import keyboard as pynput_keyboard
|
515
510
|
listener = pynput_keyboard.GlobalHotKeys({
|
516
511
|
pynput_hotkey: capture,
|
517
512
|
secondary_ss_hotkey: ocr_secondary_rectangles,
|
518
|
-
secret_ss_hotkey: capture_main_monitor
|
519
513
|
})
|
520
514
|
listener.start()
|
521
515
|
print(f"Press {pynput_hotkey} to take a screenshot.")
|
@@ -22,7 +22,7 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
22
22
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=QyBarjb6Wjt-oyor1sIT9hG-KrGdi6wODLyCrHXun6E,6008
|
23
23
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
24
24
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=Rm1_nuZotJhfOfoJ_3mesh9udtOBjYqKhnAvSief6fo,29181
|
25
|
-
GameSentenceMiner/ocr/owocr_helper.py,sha256=
|
25
|
+
GameSentenceMiner/ocr/owocr_helper.py,sha256=LNxxroMZzwl57SMd3nK1QMaPwats63NwKdSTqCcqgZE,28486
|
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
|
@@ -71,9 +71,9 @@ GameSentenceMiner/web/templates/index.html,sha256=VrhrkQKcOAPuoWRcilFLDXjvNf6WTO
|
|
71
71
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
72
72
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
73
73
|
GameSentenceMiner/wip/__init___.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
74
|
-
gamesentenceminer-2.14.
|
75
|
-
gamesentenceminer-2.14.
|
76
|
-
gamesentenceminer-2.14.
|
77
|
-
gamesentenceminer-2.14.
|
78
|
-
gamesentenceminer-2.14.
|
79
|
-
gamesentenceminer-2.14.
|
74
|
+
gamesentenceminer-2.14.13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
75
|
+
gamesentenceminer-2.14.13.dist-info/METADATA,sha256=FwxiLQvWmaXWARCcFrCG9UjqrYUAfWOpxoT0gnNHC-Y,7303
|
76
|
+
gamesentenceminer-2.14.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
77
|
+
gamesentenceminer-2.14.13.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
78
|
+
gamesentenceminer-2.14.13.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
79
|
+
gamesentenceminer-2.14.13.dist-info/RECORD,,
|
File without changes
|
{gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/entry_points.txt
RENAMED
File without changes
|
{gamesentenceminer-2.14.11.dist-info → gamesentenceminer-2.14.13.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|