PPOCRLabelv2 is a semi-automatic graphic annotation tool suitable for OCR field, with built-in PP-OCR model to automatically detect and re-recognize data.
109
stars
33
forks
source link
將PPOCRLabel轉exe後發生ImportError: cannot import name 'DEFAULT_LOCK_COLOR' from 'libs.shape' 。 #15
问题描述 / Problem Description 使用pyinstaller將PPOCRLabel轉exe,生成dist資料夾,內部包含執行檔PPOCRLabel.exe及資料夾_internal。 已參考https://blog.csdn.net/u012254599/article/details/128012719 將所需套件放入後,再將PPOCRLabel-main\libs放入_internal內。 運行PPOCRLabel.exe發生 ImportError: cannot import name 'DEFAULT_LOCK_COLOR' from 'libs.shape' (D:\OCR\PaddleOCR env\PPOCRLabel-main\dist\PPOCRLabel_internal\libs\shape.pyc)。
运行环境 / Runtime Environment OS : Win10 paddlepaddle : 2.5.1 paddleocr : 2.6 PaddleOCR : PaddleOCR-release-2.7
完整报错 / Complete Error Message Traceback (most recent call last): File "PPOCRLabel-main\PPOCRLabel.py", line 77, in
ImportError: cannot import name 'DEFAULT_LOCK_COLOR' from 'libs.shape' (D:\OCR\PaddleOCR env\PPOCRLabel-main\dist\PPOCRLabel_internal\libs\shape.pyc)
求各位大佬幫忙解決!!!