1

I am working on a project that requires me to identify a product on a grocery shelf. For that, I am trying to use test recognition and localization to spot a product.

I tried Easy OCR and tesseract OCR because they are giving me accurate results, but it takes a lot of time to process the image

  1. Easy OCR takes about 7 seconds to process one image.
  2. Keras OCR takes about 42 seconds.

I followed this post to implement the code: https://www.kaggle.com/code/odins0n/keras-ocr-vs-easyocr-vs-pytesseract

I am running this on my laptop with NVIDIA GeForce RTX 3050 GPU. Is this expected behavior? Is there any way to improve the speed?

1 Answers1

0

EasyOCR should not be that slow using a GPU, have you installed the CPU version of pytorch?

If you have a CPU version of pytorch in the local cache you will need to do the following

uninstall the CPU version of pytorch

pip uninstall torch

install the GPU version, don't use the local cache

pip3 install torch --extra-index-url https://download.pytorch.org/whl/cu116 --no-cache-dir

If you do a "pip list", you should see, which are the GPU versions
torch 1.13.1+cu116
torchaudio 0.13.1+cu116
torchvision 0.14.1+cu116

I hope this helps.