I was succesful using easyocr on my computer with gpu and cuda, but now I have to use it also on machine with only cpu. After following the installation guide from https://www.jaided.ai/easyocr/install/ and installing pytorch from https://pytorch.org/get-started/locally/ choosing stable/widnows/pip/python/cpu I just copied example from tutorial https://www.jaided.ai/easyocr/tutorial/ saving the example picture from the website.
I've used pip to install both pytorch, by running pip3 install torch torchvision torchaudio
and pip install easyocr
in my venv.
I've also tried adding opencv-python, sice I've read that sometimes it can help.
Imports semm to work fine, I've also used
import torch
x = torch.rand(5, 3)
print(x)
to check if pytorch is installed properly. The problem is, after running the most basic script from tutorial:
import easyocr
reader = easyocr.Reader(['ch_tra', 'en'], gpu=False)
result = reader.readtext('./data/chinese_tra.jpg')
print(result)
There is no output, only this message:
Using CPU. Note: This module is much faster with a GPU.
I've also tried using different images that worked on my machine with GPU, so I think this isn't a problem with image.
Any suggestions on what should I check/do differently to make easyocr work on machine with only cpu?
Edit: I've tried the same approach and steps on machine with cpu only, but linux (ubuntu 20.04). It works fine then.