Skip to content
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

package PPORCLabel into EXE file #11940

Closed
Zhang-Tianxu opened this issue Apr 16, 2024 · 5 comments
Closed

package PPORCLabel into EXE file #11940

Zhang-Tianxu opened this issue Apr 16, 2024 · 5 comments
Assignees

Comments

@Zhang-Tianxu
Copy link

请提供下述完整信息以便快速定位问题/Please provide the following information to quickly locate the problem

  • 系统环境/System Environment:Windows 11
  • 版本号/Version:Paddle: PaddleOCR: 问题相关组件/Related components:
    * PaddlePaddle:2.6.1
    * PaddleOCR 2.7.5
  • 运行指令/Command Code:No
  • 完整报错/Complete Error Message:

abelImg provide method to package into EXE file, Can PPOCRLabel be packaged into an EXE file? If so, how to package it?

I tried hard to package it using PyInstaller, still can't work properly

image

@Zhang-Tianxu
Copy link
Author

I solved this problem in an inelegant way.

I copied all dependencies, such as paddle, paddleocr, etc., into _internal directory after excute following cmd:

pyinstaller --hidden-import=pyqt5 --hidden-import=lxml  PPOCRLabel.py -p ./libs -p ./ -w

Then you may encounter the problem in the picture, copy directory resources under PPOCRLabel into _internal can solve the problem.

Although I solved this problem,

I STILL LOOK FORWARD TO AN ELEGANT SOLUTION FROM THE OFFICIAL

@UserWangZz
Copy link
Collaborator

We will contact relevant people to follow up. Thank you for your suggestion.

@TingquanGao
Copy link
Collaborator

Thx. We don't support to package to EXE file now. If you have a good solution, welcome new PR for PaddleOCR.

@ad5014858
Copy link

@Zhang-Tianxu hi,I used the same method as you to solve the problem, but a few more issues came up, did you show up and solve it or didn't show up?
image
image

@SWHL
Copy link
Collaborator

SWHL commented May 19, 2024

PPOCRLabel project has moved PFCCLab/PPOCRLabel. For follow-up questions, please move to this repo to ask!

@SWHL SWHL closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants