Skip to content

如何指定使用 server 模型? #13360

Closed Answered by UserWangZz
iwaitu asked this question in Q&A
Discussion options

You must be logged in to vote

可以手动下载server模型后

ocr = PaddleOCR(use_angle_cls=False, lang="en", use_gpu=False,
      det_model_dir='/paddle/PaddleOCR/pretrain/ch_PP-OCRv4_det_infer',
      rec_model_dir='/paddle/PaddleOCR/pretrain/ch_PP-OCRv4_rec_infer',
      rec_char_dict_path='/paddle/PaddleOCR/ppocr/utils/ppocr_keys_v1.txt',
      )

上面示例没有使用server模型,需要手动更改为你下载的server模型地址
注意识别模型中英文需要对应字典

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by UserWangZz
Comment options

You must be logged in to vote
1 reply
@UserWangZz
Comment options

Comment options

You must be logged in to vote
0 replies
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