Merged
Conversation
PPOCRLabel.py
Outdated
| use_gpu=self.gpu, | ||
| lang=choose_lang, | ||
| ) | ||
| if choose_lang in ["french", "german", "korean"]: |
Collaborator
There was a problem hiding this comment.
新版本的PaddleOCR会自动根据语言确定模型,其实也可以不需要这样特殊判断
GreatV
reviewed
Jun 13, 2025
PPOCRLabel.py
Outdated
| # TODO the model will be automatically selected based on the language. | ||
| if choose_lang in ["french", "german", "korean"]: | ||
| self.ocr = PaddleOCR( | ||
| use_doc_orientation_classify=True, |
Collaborator
There was a problem hiding this comment.
最好把这两个参数设置为false, doc unwarping后的图和原图文字位置会有变化。下面的分支建议也改一下。
use_doc_unwarping=False,
use_doc_orientation_classify=False,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There will be an error when the user uses other language models.