We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
我在使用'det_db_box_thresh'参数的时候,设置了相应的值,但是输出并没有将小于此置信度的框给过滤掉 argument = {"config_path": "models/config_en.txt", 'det_db_unclip_ratio' : 2.2, 'det_db_box_thresh':0.9} # 指定使用英文库
ocr = GetOcrApi(rf"{script_directory}\PaddleOCR-json_v1.4.0\PaddleOCR-json.exe", argument=argument, )
det_db_unclip_ratio值可以正常使用, 但det_db_box_thresh设置的值并未起作用
The text was updated successfully, but these errors were encountered:
det_db_box_thresh 最终作用于 cpp\src\postprocess_op.cpp 第 288 行:
det_db_box_thresh
cpp\src\postprocess_op.cpp
288
if (score < box_thresh) continue;
注意它对比的 score 是文本检测的置信度,而不是我们OCR返回结果中的score(文本识别置信度)。文本检测和文本识别是两个独立的步骤。
score
因此,det_db_box_thresh设置的值是过滤掉 不准确的框框 ,而不是 不准确的字符 。
Sorry, something went wrong.
No branches or pull requests
我在使用'det_db_box_thresh'参数的时候,设置了相应的值,但是输出并没有将小于此置信度的框给过滤掉
argument = {"config_path": "models/config_en.txt",
'det_db_unclip_ratio' : 2.2,
'det_db_box_thresh':0.9} # 指定使用英文库
ocr = GetOcrApi(rf"{script_directory}\PaddleOCR-json_v1.4.0\PaddleOCR-json.exe",
argument=argument, )
det_db_unclip_ratio值可以正常使用, 但det_db_box_thresh设置的值并未起作用
The text was updated successfully, but these errors were encountered: