NVIDIA-AI-IOT / scene-text-recognition Public

I have installed scene-text-recognition following the guide
Object Detection with Jetson Nano - #10 by AastaLLL

but when i execute :

python3 easy_ocr_demo.py /home/nvidia/scene-text-recognition/docs/images/

i have the following error :
login as: jetson
jetson@’s password:
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.9.253-tegra aarch64)

To restore this content, you can run the ‘unminimize’ command.

0 updates can be applied immediately.

Last login: Mon Sep 26 21:56:09 2022 from
jetson@jetson-desktop:~$ cd scene-text-recognition/EasyOCR/
jetson@jetson-desktop:~/scene-text-recognition/EasyOCR$ python3 easy_ocr_demo.py /home/jetson/scene-text-recognition/docs/images/
Traceback (most recent call last):
File “easy_ocr_demo.py”, line 28, in
import easyocr
File “/home/jetson/scene-text-recognition/EasyOCR/easyocr/init.py”, line 1, in
from .easyocr import Reader
File “/home/jetson/scene-text-recognition/EasyOCR/easyocr/easyocr.py”, line 39, in
from .detection import get_detector, get_textbox
File “/home/jetson/scene-text-recognition/EasyOCR/easyocr/detection.py”, line 47, in
from .imgproc import resize_aspect_ratio, normalizeMeanVariance
File “/home/jetson/scene-text-recognition/EasyOCR/easyocr/imgproc.py”, line 8, in
from skimage import io
File “/usr/local/lib/python3.6/dist-packages/scikit_image-0.17.2-py3.6-linux-aarch64.egg/skimage/io/init.py”, line 7, in
from .manage_plugins import *
File “/usr/local/lib/python3.6/dist-packages/scikit_image-0.17.2-py3.6-linux-aarch64.egg/skimage/io/manage_plugins.py”, line 23, in
from .collection import imread_collection_wrapper
File “/usr/local/lib/python3.6/dist-packages/scikit_image-0.17.2-py3.6-linux-aarch64.egg/skimage/io/collection.py”, line 13, in
from tifffile import TiffFile
File “/usr/local/lib/python3.6/dist-packages/tifffile-2022.8.12-py3.6.egg/tifffile/init.py”, line 3, in
from .tifffile import doc, all, version, main
File “/usr/local/lib/python3.6/dist-packages/tifffile-2022.8.12-py3.6.egg/tifffile/tifffile.py”, line 1046
SyntaxError: invalid syntax



From the log, you are using the latest 2022.8.12 tifffile library which depends on numpy 1.22.4.

However, the sample requires numpy 1.19.3.
Could you downgrade the tifffile and make sure it can work with numpy 1.19.3?



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.