Skip to main content
100%

batch processing in Python for Abbyy fine reader

✓ Published0🌍 Public
Aadelaide01
Last edited Oct 21, 2019
Created on Oct 21, 2019

This example demonstrates a Python batch-processing script for the Abbyy FineReader OCR cloud service, enabling automated document recognition across entire folders. The code defines an `AbbyyOnlineSdk` class that handles image uploads via HTTP POST requests, polls task status until completion, and downloads recognized text results. Two scripts are included: `SimpleFolderProcess.py` processes all files in an input folder and saves `.txt` results to an output folder, while `process-for-folders.py` extends this with command-line arguments for specifying source/target files, language, and output format (txt, pdf, rtf, docx, or xml), along with environment-variable support for credentials and proxy settings. The visualization of interest is the batch workflow: a loop iterates over source files, submits each for OCR, polls the cloud service at intervals, and writes the recognized text to corresponding output files, demonstrating asynchronous cloud-based processing with status tracking and result downloading.

AI-generated description

Similar vizzes