Learn
Text from image
Text from image in XiKey Photo 0.9.5 turns printed Arabic and English in a picture into an editable text layer. Recognition runs on your computer with Tesseract 5; after the engine and language packs are installed, it works offline.
Recognise and review text
- Open the picture, select its pixel layer and select the text area. With no area selected, Photo uses the whole layer.
- Choose Edit › Text from image…. You can also search for OCR or Text from image.
- Choose Arabic + English (the default), Arabic or English. Choose Accurate for the Best language packs or Fast for faster recognition. On Linux and macOS, when Photo uses installed system language data, both choices use that data and the dialog identifies its quality as System.
- Compare the recognised text with the picture and correct it. Arabic stays in normal reading order; edit its words from right to left. Hover over a word box to see its confidence estimate.
- Choose Create text layer. Photo adds an ordinary editable text layer at the selected area. Font and size are approximate; adjust them with the Type tool. One Undo removes the operation.
Hide the original pixels hides the source text with a mask while keeping the original pixels available. Cancel leaves the picture unchanged.
What the review colours mean
- Green: high confidence, at least 85%.
- Amber: medium confidence, from 60% to below 85%.
- Red: low confidence, below 60%.
Confidence is an engine estimate, not a guarantee that a word is correct. Review every result, including green words. Small or blurred letters, low resolution, compression and decorative backgrounds can cause mistakes. Arabic harakat are less reliable and need particular care. This tool is for printed text; it does not promise handwriting or calligraphic-logo recognition. For artwork or a low-confidence result, Open XiKey Trace offers editable outlines instead of text.
Set up Windows
In the Windows x64 installer, Text recognition (OCR) is an optional component selected by default in a Typical installation. Keep it selected to install Tesseract and the Arabic and English language packs. If it was omitted, run the installer again and select the component. Photo and XiKey PDF use the same shared OCR files, so installing both products does not require another copy of those files.
The Windows ARM64 installer does not bundle an OCR engine and does not offer this component. Provide a compatible native Tesseract 5 engine separately. To select its executable, set the XIKEY_OCR_ENGINE environment variable to its full path before launching Photo. Photo does not silently substitute the bundled x64 engine. Use Get language packs to obtain the selected language data; downloading packs does not install the engine.
Get language packs
Get language packs downloads the selected Arabic and/or English models for Accurate or Fast into your shared per-user OCR folder. Photo verifies each downloaded file against its pinned SHA-256 checksum before installing it. The download needs an internet connection; recognition itself works offline. Engine installation is separate. If setup fails, follow the error message and try again; the setup help page explains the platform requirements.
Set up Linux
AppImage users install the system engine and Arabic language data with:
sudo apt install tesseract-ocr tesseract-ocr-ara
Use the Copy command button beside the command in Photo's missing-engine message, then run it in a terminal. Reopen Text from image after installation. Photo prefers shared versioned language packs when available; otherwise it uses the installed system data and shows System quality.
Set up macOS
DMG users install the system engine and language data with Homebrew:
brew install tesseract tesseract-lang
Use the Copy command button beside the command in Photo's missing-engine message, then run it in a terminal. Reopen Text from image after installation. Photo prefers shared versioned language packs when available; otherwise it uses the installed system data and shows System quality.