Image to Text (OCR)
Pricing
$5.20 / 1,000 image ocrs
Go to Apify Store
Image to Text (OCR)
Extract text from images using Tesseract.js OCR engine. Supports 100+ languages, PDFs, and bulk image processing.
Image to Text (OCR)
Pricing
$5.20 / 1,000 image ocrs
Extract text from images using Tesseract.js OCR engine. Supports 100+ languages, PDFs, and bulk image processing.
Source URL
sourceUrl
Required
URL of the source image (null if loaded from key-value store)
Source KV Key
sourceKvKey
Required
Key-value store key of the source image (null if loaded from URL)
Extracted Text
text
Required
Full text extracted from the image via OCR
Language
language
Required
Tesseract language code used for OCR (e.g. 'eng', 'fra', 'chi_sim')
Confidence
confidence
Required
Overall OCR confidence score (0-100). Higher is more accurate.
Word Count
wordCount
Required
Number of words extracted (after applying minConfidence filter)
Line Count
lineCount
Required
Number of text lines detected in the image
Block Count
blockCount
Required
Number of text blocks detected in the image
Blocks
blocks
Optional
Structured OCR output with blocks, paragraphs, lines, and words including bounding boxes (only present when outputLevel is 'words', 'lines', or 'full')
Image Width
imageWidth
Required
Width of the (preprocessed) image in pixels
Image Height
imageHeight
Required
Height of the (preprocessed) image in pixels
Preprocessed
preprocessed
Required
Whether image preprocessing (deskew, contrast, binarize) was applied before OCR
Processing Time (ms)
processingTimeMs
Required
Total time taken to process this image (download + preprocess + OCR) in milliseconds
OCR Engine Used
ocrEngineUsed
Optional
OCR engine that was used (only present when outputLevel is 'full')
hOCR Output
hocr
Optional
Raw hOCR XML output from Tesseract (only present when includeRawHocr is true and outputLevel is 'full')
Processed At
processedAt
Required
ISO 8601 timestamp of when OCR processing completed
Errors
errors
Required
List of error messages encountered during processing (empty array on success)