GameSentenceMiner 2.7.12__py3-none-any.whl → 2.7.14__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/gsm_ocr_config.py +0 -1
- GameSentenceMiner/ocr/owocr_helper.py +3 -6
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/METADATA +2 -1
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/RECORD +8 -8
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.7.12.dist-info → gamesentenceminer-2.7.14.dist-info}/top_level.txt +0 -0
@@ -126,8 +126,6 @@ def get_ocr_config() -> OCRConfig:
|
|
126
126
|
return OCRConfig.from_dict(new_config_data)
|
127
127
|
elif "rectangles" in config_data and isinstance(config_data["rectangles"], list) and all(
|
128
128
|
isinstance(item, dict) and "coordinates" in item for item in config_data["rectangles"]):
|
129
|
-
logger.info("Loading new OCR config format.")
|
130
|
-
logger.info(config_data)
|
131
129
|
return OCRConfig.from_dict(config_data)
|
132
130
|
else:
|
133
131
|
raise Exception(f"Invalid config format in {config_path}.")
|
@@ -290,11 +288,8 @@ def run_oneocr(ocr_config: OCRConfig, i, area=False):
|
|
290
288
|
rect_config = ocr_config.rectangles[i]
|
291
289
|
coords = rect_config.coordinates
|
292
290
|
monitor_config = rect_config.monitor
|
293
|
-
exclusions = (rect.coordinates for rect in list(filter(lambda x: x.is_excluded, ocr_config.rectangles)))
|
291
|
+
exclusions = list(rect.coordinates for rect in list(filter(lambda x: x.is_excluded, ocr_config.rectangles)))
|
294
292
|
screen_area = ",".join(str(c) for c in coords) if area else None
|
295
|
-
print(ocr_config)
|
296
|
-
print(area)
|
297
|
-
print(screen_area)
|
298
293
|
run.run(read_from="screencapture", write_to="callback",
|
299
294
|
screen_capture_area=screen_area,
|
300
295
|
# screen_capture_monitor=monitor_config['index'],
|
@@ -331,6 +326,8 @@ if __name__ == "__main__":
|
|
331
326
|
logger.info(f"Received arguments: ocr1={ocr1}, ocr2={ocr2}, twopassocr={twopassocr}")
|
332
327
|
global ocr_config
|
333
328
|
ocr_config: OCRConfig = get_ocr_config()
|
329
|
+
|
330
|
+
logger.info(f"Starting OCR with configuration: Window: {ocr_config.window}, Rectangles: {len(ocr_config.rectangles)}, Engine 1: {ocr1}, Engine 2: {ocr2}, Two-pass OCR: {twopassocr}")
|
334
331
|
if ocr_config and ocr_config.rectangles:
|
335
332
|
rectangles = list(filter(lambda rect: not rect.is_excluded, ocr_config.rectangles))
|
336
333
|
last_ocr1_results = [""] * len(rectangles) if rectangles else [""]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: GameSentenceMiner
|
3
|
-
Version: 2.7.
|
3
|
+
Version: 2.7.14
|
4
4
|
Summary: A tool for mining sentences from games. Update: Multi-Line Mining! Fixed!
|
5
5
|
Author-email: Beangate <bpwhelan95@gmail.com>
|
6
6
|
License: MIT License
|
@@ -34,6 +34,7 @@ Requires-Dist: numpy
|
|
34
34
|
Requires-Dist: pystray
|
35
35
|
Requires-Dist: pywin32; sys_platform == "win32"
|
36
36
|
Requires-Dist: google-generativeai
|
37
|
+
Requires-Dist: pygetwindow; sys_platform == "win32"
|
37
38
|
Dynamic: license-file
|
38
39
|
|
39
40
|
# Game Sentence Miner
|
@@ -21,10 +21,10 @@ GameSentenceMiner/downloader/Untitled_json.py,sha256=RUUl2bbbCpUDUUS0fP0tdvf5Fng
|
|
21
21
|
GameSentenceMiner/downloader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
GameSentenceMiner/downloader/download_tools.py,sha256=mI1u_FGBmBqDIpCH3jOv8DOoZ3obgP5pIf9o9SVfX2Q,8131
|
23
23
|
GameSentenceMiner/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
|
-
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=
|
24
|
+
GameSentenceMiner/ocr/gsm_ocr_config.py,sha256=zagsB4UD9mmZX_r6dFBCXZqdDa0XGk-RvIqbKoPB9lQ,1932
|
25
25
|
GameSentenceMiner/ocr/ocrconfig.py,sha256=hTROOZ3On2HngXKxwQFZvnr5AxlmlMV0mPxv-F3NbMg,6476
|
26
26
|
GameSentenceMiner/ocr/owocr_area_selector.py,sha256=bCgusYXe9ibCsf56PlU301aNfDA2PDKasi78ox0IGbk,46856
|
27
|
-
GameSentenceMiner/ocr/owocr_helper.py,sha256=
|
27
|
+
GameSentenceMiner/ocr/owocr_helper.py,sha256=Rd1wcVtJy0N6ySn1p7-08hLYA9iPkts12zGJESoEewI,15126
|
28
28
|
GameSentenceMiner/owocr/owocr/__init__.py,sha256=opjBOyGGyEqZCE6YdZPnyt7nVfiwyELHsXA0jAsjm14,25
|
29
29
|
GameSentenceMiner/owocr/owocr/__main__.py,sha256=r8MI6RAmbkTWqOJ59uvXoDS7CSw5jX5war9ULGWELrA,128
|
30
30
|
GameSentenceMiner/owocr/owocr/config.py,sha256=738QCJHEWpFhMh966plOcXYWwcshSiRsxjjIwldeTtI,7461
|
@@ -36,9 +36,9 @@ GameSentenceMiner/vad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
36
36
|
GameSentenceMiner/vad/silero_trim.py,sha256=ULf3zwS-JMsY82cKF7gZxREHw8L6lgpWF2U1YqgE9Oc,1681
|
37
37
|
GameSentenceMiner/vad/vosk_helper.py,sha256=125X8C9NxFPlWWpoNsbOnEqKx8RCjXN109zNx_QXhyg,6070
|
38
38
|
GameSentenceMiner/vad/whisper_helper.py,sha256=JJ-iltCh813XdjyEw0Wn5DaErf6PDqfH0Efu1Md8cIY,3543
|
39
|
-
gamesentenceminer-2.7.
|
40
|
-
gamesentenceminer-2.7.
|
41
|
-
gamesentenceminer-2.7.
|
42
|
-
gamesentenceminer-2.7.
|
43
|
-
gamesentenceminer-2.7.
|
44
|
-
gamesentenceminer-2.7.
|
39
|
+
gamesentenceminer-2.7.14.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
40
|
+
gamesentenceminer-2.7.14.dist-info/METADATA,sha256=KUj0VZC1ZOiywqGwMSjz4No-9EKoJ4g-KgVgoeyDRsU,5892
|
41
|
+
gamesentenceminer-2.7.14.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
|
42
|
+
gamesentenceminer-2.7.14.dist-info/entry_points.txt,sha256=2APEP25DbfjSxGeHtwBstMH8mulVhLkqF_b9bqzU6vQ,65
|
43
|
+
gamesentenceminer-2.7.14.dist-info/top_level.txt,sha256=V1hUY6xVSyUEohb0uDoN4UIE6rUZ_JYx8yMyPGX4PgQ,18
|
44
|
+
gamesentenceminer-2.7.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|