Skip to content

rec v4 模型, Rapidocr 调用paddle方式 如果是字典里没有的字符,会直接没有显示结果,也没有占位符之类。怎样修改代码,将没有的字符改成返回成■? #166

@nissansz

Description

@nissansz

请提供下述完整信息以便快速定位问题
(Please provide the following information to quickly locate the problem)

  • 系统环境/System Environment:
  • 使用的是哪门语言的程序/Which programing language:
  • 所使用语言相关版本信息/Version:
  • OnnxRuntime版本/OnnxRuntime Version:
  • 使用当前库的版本/Use version:
  • 可复现问题的demo和文件/Demo of reproducible problems:
  • 完整报错/Complete Error Message:
  • 可能的解决方案/Possible solutions:

rec v4 模型, Rapidocr 调用paddle方式 如果是字典里没有的字符,会直接没有显示结果,也没有占位符之类。怎样修改代码,将没有的字符改成返回成■?

image
v4 中文返回的是
我从来没觉得美是个累赘
邪魔 美の。

正确返回结果应该是
我从来没觉得美咲是个累赘
私は 邪魔だなんて 思ったことないから! 美咲のこと。

如果字典没有字符,想返回如下效果,每个■代表个一个识别有问题的字符。
我从来没觉得美■是个累赘
■■■■■■邪魔 美の■■■■。

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