Home > OS >  Is EasyOCR license plate recognition dependent on the GPU only?
Is EasyOCR license plate recognition dependent on the GPU only?

Time:07-29

i would like to know if easyocr for license plate recognition is dependant on the GPU. Im trying to use this script to read the license plate in a image and it's EXTREMELY SLOW (10 min). And i just found out the computer i'm using does not have a GPU.

 from PIL import Image
    import numpy as np
    import easyocr
    import ssl
    ssl._create_default_https_context = ssl._create_unverified_context
    
    IMAGE_PATH = 'test.png'
    reader = easyocr.Reader(['en'])
    result = reader.readtext(IMAGE_PATH)
    for detection in result:
        if detection[2] > 0.5:
            print(detection[1])

CodePudding user response:

As seen on the pypi installation page of easyocr

"In case you do not have a GPU, or your GPU has low memory, you can run the model in CPU-only mode by adding gpu=False.

reader = easyocr.Reader(['ch_sim','en'], gpu=False)

"

CodePudding user response:

EasyOCR works without GPU, but is crushingly slow.

  • Related