Skip to content

OCR timed out #44

@jianghr-shanghaitech

Description

@jianghr-shanghaitech

System Info / 系統信息

image/open_shai_v15_exam_paper_115.jpg ===
Layout coords scale: prep 800x800 -> orig 6800x9067 (scale_x=8.500 scale_y=11.334)
OCR API request error (attempt 1/3): HTTPConnectionPool(host='127.0.0.1', port=8080): Read timed out. (read timeout=120). Retrying...
OCR API request error (attempt 2/3): HTTPConnectionPool(host='127.0.0.1', port=8080): Read timed out. (read timeout=120). Retrying...
Error during recognition: HTTPConnectionPool(host='127.0.0.1', port=8080): Read timed out. (read timeout=120)

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

with GlmOcr() as ocr:
for img in images:
print(f"\n=== Parsing: {img} ===")
try:
subdir, json_name = parse_name(img.name)
out_dir = output_root / subdir
out_dir.mkdir(parents=True, exist_ok=True)

            results = ocr.parse(str(img))

Expected behavior / 期待表现

return in time

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions