Skip to content

ocr识别完成后文件资源没有被释放 #16121

@jcc-cody

Description

@jcc-cody

🔎 Search before asking

  • I have searched the PaddleOCR Docs and found no similar bug report.
  • I have searched the PaddleOCR Issues and found no similar bug report.
  • I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

通过文件路径 进行ocr识别,之后无法删除这个文件, 这个文件还被ocr占用,没有被释放

🏃‍♂️ Environment (运行环境)

Python3.11.9

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

result = await asyncio.to_thread(self.ocr.predict, new_path)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions