GameSentenceMiner 2.12.4__py3-none-any.whl → 2.12.5__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 +1 -1
- GameSentenceMiner/owocr/owocr/run.py +4 -0
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/RECORD +8 -8
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.12.4.dist-info → gamesentenceminer-2.12.5.dist-info}/top_level.txt +0 -0
@@ -201,7 +201,7 @@ def do_second_ocr(ocr1_text, time, img, filtering, pre_crop_image=None, ignore_f
|
|
201
201
|
orig_text, text = run.process_and_write_results(img, None, last_ocr2_result if not ignore_previous_result else None, filtering, None,
|
202
202
|
engine=get_ocr_ocr2(), furigana_filter_sensitivity=furigana_filter_sensitivity if not ignore_furigana_filter else 0)
|
203
203
|
|
204
|
-
if compare_ocr_results(last_ocr2_result, orig_text):
|
204
|
+
if compare_ocr_results(last_ocr2_result, orig_text, threshold=99):
|
205
205
|
if text:
|
206
206
|
logger.info("Seems like Text we already sent, not doing anything.")
|
207
207
|
return
|
@@ -856,6 +856,9 @@ class OBSScreenshotThread(threading.Thread):
|
|
856
856
|
self.current_source_name = self.current_source.get("sourceName") or None
|
857
857
|
self.current_scene = scene if scene else obs.get_current_game()
|
858
858
|
self.ocr_config = get_scene_ocr_config()
|
859
|
+
if not self.ocr_config:
|
860
|
+
logger.error("No OCR config found for the current scene.")
|
861
|
+
return
|
859
862
|
self.ocr_config.scale_to_custom_size(self.width, self.height)
|
860
863
|
|
861
864
|
# Register a scene switch callback in obsws
|
@@ -883,6 +886,7 @@ class OBSScreenshotThread(threading.Thread):
|
|
883
886
|
continue
|
884
887
|
|
885
888
|
if not self.ocr_config:
|
889
|
+
logger.info("No OCR config found for the current scene. Waiting for scene switch.")
|
886
890
|
time.sleep(1)
|
887
891
|
continue
|
888
892
|
|
@@ -19,14 +19,14 @@ GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
19
19
|
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=Ezj-0k6Wo-una91FvYhMp6KGkRhWYihXzLAoh_Wu2xY,5329
|
20
20
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=_tY8mjnzHMJrLS8E5pHqYXZjMuLoGKYgJwdhYgN-ny4,6466
|
21
21
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=O8qKOTDglk-D4N-2_ORLeZacXT-OVOCNxUI8sQHAlx4,25538
|
22
|
-
GameSentenceMiner/ocr/owocr_helper.py,sha256=
|
22
|
+
GameSentenceMiner/ocr/owocr_helper.py,sha256=ntfSfljm1IiCXZMG4o23Q8j2wZfiCLywawGC_LWci4E,25320
|
23
23
|
GameSentenceMiner/ocr/ss_picker.py,sha256=0IhxUdaKruFpZyBL-8SpxWg7bPrlGpy3lhTcMMZ5rwo,5224
|
24
24
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=87hfN5u_PbL_onLfMACbc0F5j4KyIK9lKnRCj6oZgR0,49
|
25
25
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=XQaqZY99EKoCpU-gWQjNbTs7Kg17HvBVE7JY8LqIE0o,157
|
26
26
|
GameSentenceMiner/owocr/owocr/config.py,sha256=qM7kISHdUhuygGXOxmgU6Ef2nwBShrZtdqu4InDCViE,8103
|
27
27
|
GameSentenceMiner/owocr/owocr/lens_betterproto.py,sha256=oNoISsPilVVRBBPVDtb4-roJtAhp8ZAuFTci3TGXtMc,39141
|
28
28
|
GameSentenceMiner/owocr/owocr/ocr.py,sha256=Zii5r15ZlHFJWSbmXpva6QJVGkU3j2wT5Q0izazLyCQ,63021
|
29
|
-
GameSentenceMiner/owocr/owocr/run.py,sha256=
|
29
|
+
GameSentenceMiner/owocr/owocr/run.py,sha256=oAH6K_LEyGffJgaAKcvjDxCY3x3SfbsKfXqRiU2MNF8,65962
|
30
30
|
GameSentenceMiner/owocr/owocr/screen_coordinate_picker.py,sha256=Na6XStbQBtpQUSdbN3QhEswtKuU1JjReFk_K8t5ezQE,3395
|
31
31
|
GameSentenceMiner/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
GameSentenceMiner/util/audio_offset_selector.py,sha256=8Stk3BP-XVIuzRv9nl9Eqd2D-1yD3JrgU-CamBywJmY,8542
|
@@ -64,9 +64,9 @@ GameSentenceMiner/web/templates/index.html,sha256=Gv3CJvNnhAzIVV_QxhNq4OD-pXDt1v
|
|
64
64
|
GameSentenceMiner/web/templates/text_replacements.html,sha256=tV5c8mCaWSt_vKuUpbdbLAzXZ3ATZeDvQ9PnnAfqY0M,8598
|
65
65
|
GameSentenceMiner/web/templates/utility.html,sha256=3flZinKNqUJ7pvrZk6xu__v67z44rXnaK7UTZ303R-8,16946
|
66
66
|
GameSentenceMiner/wip/get_overlay_coords.py,sha256=yivn8C26BBRK4cjE7yPv1XfvbyqWC0itLL9Vay8aY-c,19780
|
67
|
-
gamesentenceminer-2.12.
|
68
|
-
gamesentenceminer-2.12.
|
69
|
-
gamesentenceminer-2.12.
|
70
|
-
gamesentenceminer-2.12.
|
71
|
-
gamesentenceminer-2.12.
|
72
|
-
gamesentenceminer-2.12.
|
67
|
+
gamesentenceminer-2.12.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
68
|
+
gamesentenceminer-2.12.5.dist-info/METADATA,sha256=UGcSWrOMckX-IZcBLL0mR1GF-0-ZC9YTabsKwxP3Rsc,7061
|
69
|
+
gamesentenceminer-2.12.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
70
|
+
gamesentenceminer-2.12.5.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
71
|
+
gamesentenceminer-2.12.5.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
72
|
+
gamesentenceminer-2.12.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|