feat: add enable_detection switch to skip text detection
enable_detection: false 跳过检测模型,直接把整图当一行文本送识别。 实测:单行图可正确识别;多行整图因识别模型固定缩放到高 48px 会返回空结果,已加告警。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -25,6 +25,7 @@ if __name__ == "__main__":
|
||||
text_recognition_batch_size=settings.text_recognition_batch_size,
|
||||
cpu_threads=settings.cpu_threads_resolved,
|
||||
enable_mkldnn=settings.enable_mkldnn,
|
||||
enable_detection=settings.enable_detection,
|
||||
return_word_box=settings.return_word_box,
|
||||
)
|
||||
service.prepare()
|
||||
|
||||
Reference in New Issue
Block a user