Skip to content

Bug #551

@Zhongbing-Chen

Description

@Zhongbing-Chen

问题描述 / Problem Description

ocr = RapidOCR(params={"Rec.ocr_version": OCRVersion.PPOCRV5, "Det.ocr_version": OCRVersion.PPOCRV5, "Rec.lang_type": LangRec.CHINESE_CHT})

使用繁体时遇到该问题
raise KeyError("File not found")
KeyError: 'File not found'

分析代码发现是用lang type去获取模型类型,但繁体和简体应该是用同一模型不同参数,可能需要调整模型获取的判断逻辑

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions