Browse Source

Fix OCR not running after MVC refactor

- 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 <noreply@anthropic.com>
feature/expand-stat-ocr-boxes
Quildra 5 months ago
parent
commit
948900e2e4
  1. 3
      app/src/main/java/com/quillstudios/pokegoalshelper/ScreenCaptureService.kt

3
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()

Loading…
Cancel
Save