Python client for the i2ocr.com service. It allows you to upload PDF files and extract text with automated CAPTCHA (Altcha) solving support.
pip install curl-cffifrom src.client import I2OCRClient
bot = I2OCRClient()
try:
# Extract text from a file
# Supported languages: "kazakh", "english", "russian", etc.
text = bot.extract_text("file.pdf", lang="kazakh")
print("Result:")
print(text)
except Exception as e:
print(f"Error: {e}")