Replies: 1 comment 1 reply
-
您好,请问具体是什么报错呢?我这边尝试了一下,这个参数是可以设置的。 from paddleocr import PaddleOCR
ocr = PaddleOCR(
use_doc_orientation_classify=False, # 通过 use_doc_orientation_classify 参数指定不使用文档方向分类模型
use_doc_unwarping=False, # 通过 use_doc_unwarping 参数指定不使用文本图像矫正模型
use_textline_orientation=False, # 通过 use_textline_orientation 参数指定不使用文本行方向分类模型
device="cpu",
cpu_threads=8,
)
result = ocr.predict("./general_ocr_002.png")
for res in result:
res.print()
res.save_to_img("output")
res.save_to_json("output") |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
为什么我在官方文档中看到了实例化 PaddleOCR() 的时候可以设置cpu_threads,但是我想设置的时候却没有这个参数?这个参数是固定了吗?

Beta Was this translation helpful? Give feedback.
All reactions