EU-Utility/core
LemonNexus 0155eb0be0 feat: Constrain skill scanner to only Entropia game window
BUG: OCR was reading text from Discord, EU-Utility UI, and other windows.

FIX:
1. Added find_entropia_window() - Uses win32gui + psutil on Windows to find
   the game window by process name 'Entropia.exe' and window title containing
   'Entropia Universe'. Returns (left, top, width, height).

2. Added capture_entropia_region() - Captures only the game window region,
   falls back to full screen if window not found.

3. Added is_valid_skill_text() - Filters out non-game text patterns:
   - Discord, Event Bus, Game Reader, Test, Page Scanner, HOTKEY MODE
   - UI elements like 'Skill Tracker', 'Calculator', 'Nexus Search'
   - Debug text like '[SkillScanner]', 'Parsed:', 'Cleared'
   - Process names like 'Entropia.exe', 'Client (64 bit)', 'Arkadia'
   - Lines with >10 words (skills aren't that long)

4. Added recognize_image() method to OCRService for convenience.

5. Modified SkillOCRThread.run() to:
   - Capture only Entropia window
   - Filter text before parsing
   - Use _parse_skills_filtered() which validates each line

6. Added _parse_skills_filtered() method that:
   - Splits text by lines
   - Only keeps lines containing a valid rank
   - Validates each line with is_valid_skill_text()
   - Logs filtered lines for debugging

RESULT:
- Scanner now ONLY reads from the game window
- Invalid text (Discord, UI, debug) is filtered out
- Much cleaner skill parsing results

Note: Window title varies by location (e.g., '[Arkadia]', '[Calypso]')
but process name is always 'Entropia.exe'.
2026-02-15 00:55:37 +00:00
..
__init__.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
audio.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
clipboard.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
dashboard.py fix: Remove redundant Settings plugin and baked-in Spotify widget 2026-02-14 19:58:18 +00:00
data_store.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
data_store_secure.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
data_store_vulnerable.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
eu_styles.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
event_bus.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
floating_icon.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
hotkey_manager.py feat: Fix system tray and add configurable hotkeys 2026-02-14 19:17:42 +00:00
http_client.py fix: Fix HTTPClient, Dashboard, and Log Parser errors 2026-02-14 23:40:09 +00:00
icon_extractor.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
icon_helper.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
icon_manager.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
log_reader.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
log_reader_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
log_watcher_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
logger.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
main.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
main_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
memory_leak_detector.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
nexus_api.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
notifications.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
ocr_backend_manager.py fix: Fix invalid escape sequence warning in ocr_backend_manager.py 2026-02-14 23:52:05 +00:00
ocr_service.py feat: Constrain skill scanner to only Entropia game window 2026-02-15 00:55:37 +00:00
ocr_service_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
ocr_service_optimized_v2.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
overlay_widgets.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
overlay_window.py feat: Add plugin-to-plugin dependencies support 2026-02-14 23:49:13 +00:00
performance_optimizations.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
plugin_api.py fix: Add missing dependencies and fix type mismatch 2026-02-14 18:16:56 +00:00
plugin_dependency_manager.py feat: Add plugin-to-plugin dependencies support 2026-02-14 23:49:13 +00:00
plugin_manager.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
plugin_manager_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
plugin_store.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
plugin_ui_components.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
screenshot.py fix: Fix initialization order bug in ScreenshotService 2026-02-14 18:50:45 +00:00
screenshot_secure.py fix: Fix initialization order bug in ScreenshotService 2026-02-14 18:50:45 +00:00
screenshot_vulnerable.py fix: Fix initialization order bug in ScreenshotService 2026-02-14 18:50:45 +00:00
security_utils.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
settings.py fix: Disable Spotify widget by default 2026-02-15 00:14:35 +00:00
settings_secure.py fix: Disable Spotify widget by default 2026-02-15 00:14:35 +00:00
startup_profiler.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
tasks.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
theme_manager.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
ui_optimizations.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
ui_render_optimized.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00
window_manager.py fix: Clean repository - remove workspace pollution 2026-02-14 03:34:04 +00:00