[英]Is EasyOCR license plate recognition dependent on the GPU only?
i would like to know if easyocr for license plate recognition is dependant on the GPU.我想知道用于车牌识别的easyocr是否依赖于GPU。 Im trying to use this script to read the license plate in a image and it's EXTREMELY SLOW (10+ min).
我试图使用这个脚本来读取图像中的车牌,而且速度非常慢(10 分钟以上)。 And i just found out the computer i'm using does not have a GPU.
我刚刚发现我使用的计算机没有 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])
As seen on the pypi installation page of easyocr如easyocr的pypi安装页面所见
"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. "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)
" "
EasyOCR works without GPU, but is crushingly slow. EasyOCR 可以在没有 GPU 的情况下工作,但速度非常慢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.