Official Tencent Cloud OCR SDK for Python, providing APIs for optical character recognition services including ID card, bank card, business license, and general text recognition. Current version 3.1.92, released Jan 2025. Active development with monthly releases.
pip install tencentcloud-sdk-python-ocrNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Performs basic OCR on a base64 image. Replace region and image data as needed.
Use correct import: from tencentcloud.ocr.v20181119 import ocr_client, models
Review Tencent Cloud OCR API documentation for latest available methods.
Set exactly one of ImageBase64 (base64 string without header) or ImageUrl (public URL).
Update to v3 import paths: from tencentcloud.ocr.v20181119 import ocr_client
Install the package and use: from tencentcloud.ocr.v20181119 import ocr_client
Use: from tencentcloud.ocr.v20181119 import ocr_client then ocr_client.OcrClient
Check Tencent Cloud available regions per API; use a supported region like 'ap-guangzhou' or 'ap-beijing'.