> ## Documentation Index
> Fetch the complete documentation index at: https://koharu.rs/llms.txt
> Use this file to discover all available pages before exploring further.

# Process pages

> Run detection, OCR, inpainting, and translation at the scope your edit needs.

The processing selector above the canvas sets the model, page scope, stages, and target language. Start with the smallest scope that covers the work.

## Choose a scope

> [tab] Current page
>
> Process the page currently shown on the canvas.

> [tab] Selected pages
>
> Process the pages selected in the page list.

> [tab] Entire project
>
> Process every page in project order.

> [tab] Selected layers
>
> Choose **Process → Process Selected Layers** after correcting or adding a few text blocks. It
> runs OCR and translation on the selected text blocks only.

## Choose stages

Select one or more stages, then choose **Run**. Selected stages always run in this order:

```mermaid theme={null}
flowchart LR
  detection["Detection"] --> ocr["OCR"] --> translation["Translation"]
  detection --> inpainting["Inpainting"]
```

Detection finds panels, speech bubbles, and text blocks, with a mask over each block's source glyphs. OCR reads each block's source text. Inpainting rebuilds the artwork under each mask. Translation writes each block's translation and places it in its room in the balloon, or in its source's frame when it has no balloon.

> [!NOTE]
>
> Omitted stages are not added. Include detection or OCR when a later stage needs fresh input.

The **Process** menu also offers **Process Project** and **Process Selected Pages**, which run all four stages, and **Run Detection**, **Run OCR**, **Run Inpainting**, and **Run Translation**. A **Run** item runs the named stage and every stage before it in the order Detection, OCR, Inpainting, Translation, and always covers the entire project, regardless of the scope selector.

## Follow progress and stop work

The activity center shows each run's stage, page, progress, and failures. Runs started while another is going wait their turn; runs on text blocks or a painted area go first. **Stop** stops every run, running and queued.

Each stage writes its result for a page as one undo step as soon as it finishes. Completed work stays when a later stage fails or the run stops. The first failure ends its run and names the page, stage, and reason.

A stage with nothing to do, such as OCR on a page without text, does nothing and does not fail.

> [!WARNING]
>
> A rerun replaces what is there, your own edits included, and undo is the way back. Detection
> replaces a page's panels, balloons, and text blocks, but leaves locked ones as they are. OCR
> rewrites source text, and translation rewrites each translation's wording and placement.

Continue with [text review](https://koharu.rs/guides/review.md) or [cleanup](https://koharu.rs/guides/cleanup.md).


## Related topics

- [Koharu documentation](https://koharu.rs/index.md)
- [Processing and rendering](https://koharu.rs/development/rendering.md)
- [Translate your first page](https://koharu.rs/quickstart.md)
- [Architecture](https://koharu.rs/development/architecture.md)
- [Troubleshooting](https://koharu.rs/reference/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.