GameSentenceMiner 2.19.7__py3-none-any.whl → 2.19.9__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.
Potentially problematic release.
This version of GameSentenceMiner might be problematic. Click here for more details.
- GameSentenceMiner/obs.py +4 -2
- GameSentenceMiner/owocr/owocr/ocr.py +2 -2
- GameSentenceMiner/web/gsm_websocket.py +2 -2
- GameSentenceMiner/web/templates/index.html +12 -17
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/METADATA +1 -1
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/RECORD +10 -10
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/WHEEL +0 -0
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/entry_points.txt +0 -0
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/licenses/LICENSE +0 -0
- {gamesentenceminer-2.19.7.dist-info → gamesentenceminer-2.19.9.dist-info}/top_level.txt +0 -0
GameSentenceMiner/obs.py
CHANGED
|
@@ -581,7 +581,10 @@ def get_active_video_sources():
|
|
|
581
581
|
if not scene_items_response:
|
|
582
582
|
return None
|
|
583
583
|
video_sources = ['window_capture', 'game_capture', 'monitor_capture']
|
|
584
|
-
|
|
584
|
+
active_video_sources = [item for item in scene_items_response if item.get('inputKind') in video_sources]
|
|
585
|
+
# active_video_sources = []
|
|
586
|
+
|
|
587
|
+
return active_video_sources if active_video_sources else [scene_items_response[0]]
|
|
585
588
|
|
|
586
589
|
def get_record_directory():
|
|
587
590
|
try:
|
|
@@ -863,7 +866,6 @@ def get_screenshot_PIL(source_name=None, compression=75, img_format='png', width
|
|
|
863
866
|
# If validation fails, still return the image as it might be valid
|
|
864
867
|
return source if return_source_dict else img
|
|
865
868
|
|
|
866
|
-
logger.error("No active source with valid image data found.")
|
|
867
869
|
return None
|
|
868
870
|
|
|
869
871
|
|
|
@@ -1595,7 +1595,7 @@ class MeikiTextDetector:
|
|
|
1595
1595
|
available = False
|
|
1596
1596
|
key = ']'
|
|
1597
1597
|
|
|
1598
|
-
def __init__(self, model_name: str = '
|
|
1598
|
+
def __init__(self, model_name: str = 'small'):
|
|
1599
1599
|
"""
|
|
1600
1600
|
Initializes the detector by downloading and loading the specified ONNX model.
|
|
1601
1601
|
|
|
@@ -1606,7 +1606,7 @@ class MeikiTextDetector:
|
|
|
1606
1606
|
if model_name not in ['tiny', 'small']:
|
|
1607
1607
|
raise ValueError("model_name must be either 'tiny' or 'small'")
|
|
1608
1608
|
|
|
1609
|
-
ort.preload_dlls(cuda=
|
|
1609
|
+
ort.preload_dlls(cuda=False, cudnn=False, directory=None)
|
|
1610
1610
|
|
|
1611
1611
|
self.model_name = model_name
|
|
1612
1612
|
self.session = None
|
|
@@ -108,11 +108,11 @@ websocket_server_thread.start()
|
|
|
108
108
|
plaintext_websocket_server_thread = None
|
|
109
109
|
if get_config().advanced.plaintext_websocket_port:
|
|
110
110
|
plaintext_websocket_server_thread = WebsocketServerThread(
|
|
111
|
-
read=
|
|
111
|
+
read=False, get_ws_port_func=lambda: get_config().get_field_value('advanced', 'plaintext_websocket_port'))
|
|
112
112
|
plaintext_websocket_server_thread.start()
|
|
113
113
|
|
|
114
114
|
overlay_server_thread = WebsocketServerThread(
|
|
115
|
-
read=
|
|
115
|
+
read=False, get_ws_port_func=lambda: get_config().get_field_value('overlay', 'websocket_port'))
|
|
116
116
|
overlay_server_thread.start()
|
|
117
117
|
|
|
118
118
|
websocket_server_threads = [
|