Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 umamusume-localify 替换字体后无法识别 #16

Closed
fatinghenji opened this issue Jun 3, 2021 · 10 comments
Closed

使用 umamusume-localify 替换字体后无法识别 #16

fatinghenji opened this issue Jun 3, 2021 · 10 comments
Labels
wontfix This will not be worked on

Comments

@fatinghenji
Copy link

要求输入识别文字,无论输入7/7月/月都会导致程序报错退出
image

@NateScarlet
Copy link
Owner

全图发一下 这个是分字没分对

@fatinghenji
Copy link
Author

image

@NateScarlet
Copy link
Owner

图片

不知为何我的字好像比你的粗

@fatinghenji
Copy link
Author

可能是因为我用了这个项目?
umamusume-localify
里面有一个参数是:
replaceFont 将所有字体替换为默认字体, 解决缺字问题 (true/false)

@fatinghenji
Copy link
Author

怎么删除错误的识别结果呢?

@NateScarlet
Copy link
Owner

开 DEBUG 看日志里面找对应的摘要 然后在数据里面把对应的那一条删掉

或者你直接用我的覆盖

@NateScarlet
Copy link
Owner

ocr_labels.json 最近加的数据会在最下面

@fatinghenji
Copy link
Author

我把replaceFont参数改为false之后问题解决了。

@NateScarlet
Copy link
Owner

那就是没适配字体的问题 应该不需要我这边改什么东西

@NateScarlet NateScarlet added the wontfix This will not be worked on label Jun 3, 2021
@fatinghenji fatinghenji changed the title 两字符识别为1字符程序报错? 多字符识别为1字符程序报错? Jun 4, 2021
@fatinghenji

This comment has been minimized.

@NateScarlet NateScarlet changed the title 多字符识别为1字符程序报错? 使用 umamusume-localify 替换字体后无法识别 Jun 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants