From 948900e2e480ae3299e980b71498fba11cc241cf Mon Sep 17 00:00:00 2001 From: Quildra Date: Tue, 29 Jul 2025 20:30:41 +0100 Subject: [PATCH] Fix OCR not running after MVC refactor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add extractPokemonInfoFromYOLOAsync call to triggerManualDetection() - OCR extraction was missing after MVC refactor - only YOLO detection was running - Now manual detection triggers both YOLO detection and OCR extraction - Maintains full Pokemon analysis functionality in new MVC architecture 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../com/quillstudios/pokegoalshelper/ScreenCaptureService.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt b/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt index 997d33b..2d0f6ac 100644 --- a/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt +++ b/app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt @@ -1112,6 +1112,9 @@ class ScreenCaptureService : Service() { // Show detection overlay with results if (detections.isNotEmpty()) { showYOLODetectionOverlay(detections) + + // Extract Pokemon info using YOLO detections with OCR + extractPokemonInfoFromYOLOAsync(mat, detections) } mat.release()