OCR: save checkpoints and resume after interruption or rate limiting

Aperta
#17,019 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Read #10727 and the thread on this issue first to see what pause/abort support already exists in the Google Lens OCR window, then trace how the OCR job loops over cues and where recognized text is written back to the subtitle list. The requested checkpoint record needs the source fingerprint, engine and language, completed cues and the next unprocessed index, so identify where that state already lives in memory before choosing a persistence format. Done means an interrupted batch can be reopened, validated and resumed with finished cues kept and partial output flagged as a draft.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Request

Persist recognized OCR cues so an interrupted job can resume across application restarts.

Context

I use Google Lens Sharp on SUP subtitles in Subtitle Edit 5.5.0-beta7 on Windows. Durable recovery would help with long jobs, network failures and rate limits.

Requested behavior

  • Checkpoint recognized text, original timings and the next unprocessed cue.
  • Restore progress after reopening the source or an unexpected exit.
  • Validate the source fingerprint and OCR engine/language before resuming.
  • Allow pause, resume and explicit restart through the GUI or automation.
  • Clearly mark partial output as a draft.
  • Preserve completed cues while waiting for service access.

This concerns recovery across process restarts, beyond pausing an open OCR window. It can work independently of command-line Lens Sharp support. Related: #10727.

If an existing recovery feature already covers this, please point me to it.

Lingua principale
C#
Stelle
15.1k
Fork
1.4k
Merge medio
1h 58m
PR unite (30g)
564

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SubtitleEdit/subtitleedit

Tutte le issue di SubtitleEdit/subtitleedit

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.