Skip to content

指定字体文件的位置,方便离线部署 #15432

New issue

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

self4m
Copy link

@self4m self4m commented May 27, 2025

指定字体文件的位置,方便离线部署

Copy link

paddle-bot bot commented May 27, 2025

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented May 27, 2025

CLA assistant check
All committers have signed the CLA.

```python
import os

# 在初始化产线前指定字体文件的位置
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不是在初始化产线前,必须在import paddleocr之前。
另外,建议直接在命令行中直接设置环境变量,无需修改Python代码。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants