Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

字幕只有一个字的情况下识别不出来? #52

Closed
dzy49 opened this issue Feb 26, 2024 · 3 comments
Closed

字幕只有一个字的情况下识别不出来? #52

dzy49 opened this issue Feb 26, 2024 · 3 comments

Comments

@dzy49
Copy link

dzy49 commented Feb 26, 2024

感谢作者!
其他情况下都很不错 但是字幕只有单字的情况下大概率识别不出来?
VSF 是有识别到并且输出了RGB图片的

@SWHL
Copy link
Owner

SWHL commented Feb 26, 2024 via email

@dzy49
Copy link
Author

dzy49 commented Feb 27, 2024

0_19_11_301__0_19_11_860_0000005761280014412800720
0_19_37_503__0_19_37_942_0000005761280014412800720

@SWHL
Copy link
Owner

SWHL commented Feb 27, 2024

这个丢失是因为识别到的文本置信度太低,导致被过滤了。可以添加text_score=0.4参数来调节。示例代码如下:

from rapid_videocr import RapidVideOCR

extractor = RapidVideOCR(is_concat_rec=True, is_print_console=False, text_score=0.4)

rgb_dir = "tiny"
save_dir = "outputs"
save_name = "a"

# outputs/a.srt  outputs/a.txt
extractor(rgb_dir, save_dir, save_name=save_name)

详细参数,可参考RapidOCR docs

Repository owner locked and limited conversation to collaborators Apr 3, 2024
@SWHL SWHL converted this issue into discussion #57 Apr 3, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants