Closed davisengeler closed 1 year ago
Were you able to resolve?
I installed: pip install detextify
and I get this error: Traceback (most recent call last): File "C:\Users\James\Desktop\detextify\detextify.py", line 8, in from detextify.paddle_text_detector import PaddleTextDetector File "C:\Users\James\Desktop\detextify\detextify.py", line 8, in from detextify.paddle_text_detector import PaddleTextDetector ModuleNotFoundError: No module named 'detextify.paddle_text_detector'; 'detextify' is not a package
did you name your script detextify.py? change it to something like test.py
Thanks @davisengeler for reporting this. The PaddleOCR library was causing a lot of trouble, so I replaced it with Tesseract. Here's a working Colab notebook.
@iuliaturc you're awesome, thanks! I’ll give it a shot soon.
Description
Hey there. This looks like an awesome project, but I'm struggling to get it working on Google Colab. I've tried to debug this a bit and install PaddlePaddle in different ways after the instructions in the readme didn't work, but for simplicity in this issue I'll only describe the errors when using the readme's instructions:
I appreciate any help you're able to provide. Thank you!
TL;DR
After installing with the recommended method from the README, I get the following error while importing from
detextify
:Context
I'm using a GPU accelerated runtime on Google Colab Pro.
Link to my notebook: https://colab.research.google.com/drive/12SiA5ZbIXXD6QXg83TgqN3WM7G6jm2QE
Here's the result of
!nvidia-smi
in case it's helpful for debugging:Installation Outputs
The following are the full outputs for each
pip
install:PaddlePaddle
!pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple
Output:
detextify
!pip install detextify
Output:
Import Errors
Now when I import from
detextify
I get an error.Output: