save_to_img 函数报错 PermissionError: [WinError 32] #16076
-
在测试公式识别模块的代码时出现PermissionError: [WinError 32] 另一个程序正在使用此文件,进程无法访问。 from paddleocr import FormulaRecognition
model = FormulaRecognition(model_name="PP-FormulaNet_plus-M",
model_dir="./PP-FormulaNet_plus-M_infer")
output = model.predict(input="general_formula_rec_001.png", batch_size=1)
for res in output:
res.print()
res.save_to_img(save_path="./Foutput/")
res.save_to_json(save_path="./Foutput/res.json") 出现的报错如下:
看上去似乎是在删除临时目录时出现的问题,但是不知道到底是谁在占用 win10 21H2
python 3.12.8
paddlex 3.1.3
paddleocr 3.1.0 |
Beta Was this translation helpful? Give feedback.
Answered by
liuhongen1234567
Jul 18, 2025
Replies: 1 comment 1 reply
-
您好,公式识别的可视化目前只支持linux系统,window系统由于涉及到latex编辑环境的安装,还在适配中。window系统的话建议把latex代码从json中读取出来,使用一些latex在线渲染引擎查看。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
YCLM-in-github
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,公式识别的可视化目前只支持linux系统,window系统由于涉及到latex编辑环境的安装,还在适配中。window系统的话建议把latex代码从json中读取出来,使用一些latex在线渲染引擎查看。