Skip to content

Video OCR: add llama.cpp engine + tidy scan-area hint#12277

Merged
niksedk merged 1 commit into
mainfrom
feature/video-ocr-llamacpp-engine
Jul 8, 2026
Merged

Video OCR: add llama.cpp engine + tidy scan-area hint#12277
niksedk merged 1 commit into
mainfrom
feature/video-ocr-llamacpp-engine

Conversation

@niksedk

@niksedk niksedk commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

Two changes to the burned-in / video OCR window (VideoOcrWindow):

1. Add a llama.cpp OCR engine

Adds a llama.cpp engine to the engine dropdown, wired to the same curated OCR models as the normal OCR window (LlamaCppServerManager.OcrModels — GLM-OCR, LightOnOCR), the same downloader (LlamaCppDownloadHelper), and the same local llama-server lifecycle. The settings panel exposes:

  • model combobox (with download-status text)
  • Download button
  • Start/Stop server button
  • language field

The selected model and language are persisted to SeVideoOcr settings. On scan start, EnsureEngineIsAvailable downloads the engine/model if needed and starts the local server; frames are then OCR'd against LlamaCppServerManager.ApiUrl.

Also renames the standalone Paddle entry from "Paddle OCR" to "Paddle OCR Standalone" to match the naming in the normal OCR window.

2. Tidy the scan-area hint

The "Drag on the video frame to select where the subtitles are" text was an inline TextBlock jammed into the horizontal scan-area row next to the label, three buttons, and the live coordinate text — so it crowded/overlapped. It's now a tooltip on the video frame itself (where the drag happens). The ScanAreaInfo language string is unchanged, so translations still apply.

Testing

  • dotnet build -c Debug succeeds (0 warnings, 0 errors).

🤖 Generated with Claude Code

Add a llama.cpp OCR engine to the burned-in/video OCR window, reusing the
same curated OCR models, downloader, and local llama-server lifecycle as the
normal OCR window. Includes model selection, download button, start/stop
server button, and a language field, with the selected model/language
persisted to settings.

Rename the standalone Paddle entry to "Paddle OCR Standalone" to match the
normal OCR window.

Turn the "Drag on the video frame..." scan-area text into a tooltip on the
video frame instead of an inline label that crowded/overlapped the scan-area
buttons and coordinate text.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@niksedk niksedk merged commit c05cc71 into main Jul 8, 2026
1 of 3 checks passed
@niksedk niksedk deleted the feature/video-ocr-llamacpp-engine branch July 8, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant