我们很高兴地宣布发布 Spire.OCR for Python 2.1.0 版本。该版本实现了云端 AI 模型(包括豆包、通义千问和 DeepSeek)与 Spire.OCR for Python 的无缝集成。这些模型有助于提高图像中文字识别的准确性和增强识别效果。 新功能: 支持接入云端 AI 模型(如豆包、千问、DeepSeek 等)进行图片文本识别。(注:用户需自行在 AI 平台获取 API Key) def _run_ai_test(self): filename = "1.png" output_file = "scan.txt" file_path = r"F:\3.3.0AI\AI\ocr.xml" model = "AIModel"…