Skip to content

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

Closed Answered by SWHL
dzy49 asked this question in Q&A
Discussion options

You must be logged in to vote

这个丢失是因为识别到的文本置信度太低,导致被过滤了。可以添加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

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SWHL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #52 on April 03, 2024 01:29.