简体   繁体   English

EasyOCR 在安装时禁用 Cuda GPU

[英]EasyOCR disables Cuda GPU when installed

Hello after installing EasyOCR via pip install easyocr via Anaconda Prompt (base) I receive this error.您好,在通过 pip 安装 EasyOCR 之后,通过 Anaconda 安装 Easyocr 提示(基本)我收到此错误。

OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\include\opencv2/core/private.cuda.hpp:106: error: (-216:No CUDA support) The library is compiled without CUDA support in function 'throw_no_cuda' OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\modules\core\include\opencv2/core/private.cuda.hpp:106: error: (-216:No CUDA support) The在 function 'throw_no_cuda' 中编译库时没有 CUDA 支持

Before installing easyocr, cuda is active and working with my GPU, but is disabled after installing EasyOCR.在安装 easyocr 之前,cuda 处于活动状态并与我的 GPU 一起工作,但在安装 EasyOCR 后被禁用。

I complied my build via Cmake using opencv4.5.4 and opencv-contrib4.5.4 with Cuda 11.3.1 and Cudnn 8.4.0 as well as uprading tot he most recent numpy 1.22.3.我通过 Cmake 使用 opencv4.5.4 和 opencv-contrib4.5.4 以及 Cuda 11.3.1 和 Cudnn 8.4.0 编译了我的构建,并升级到最新的 numpy 1.22.3。

It seems that after installing eascyOCR is changes my opencv build from whatever I am using to "opencv-python-headless-4.5.4.60" and that is I believe where the issues is at.似乎在安装 eascyOCR 后,我的 opencv 构建从我正在使用的任何内容更改为“opencv-python-headless-4.5.4.60”,我认为这就是问题所在。

This is the version of easyocr installed.这是安装的 easyocr 版本。 Downloading opencv_python_headless-4.5.4.60-cp39-cp39-win_amd64.whl (35.0 MB) Successfully installed easyocr-1.4.2 opencv-python-headless-4.5.4.60 python-bidi-0.4.2下载opencv_python_headless-4.5.4.60-cp39-cp39-win_amd64.whl (35.0 MB) 成功安装easyocr-1.4.2 opencv-python-headless-4.5.4.60 python-bidi-0.4.2

Any idea or help on how I can get easyocr working with Cuda and my GPU?关于如何让 easyocr 与 Cuda 和我的 GPU 一起工作的任何想法或帮助?

Solved,解决了,

  • Have to install EasyOCR first必须先安装EasyOCR
  • Then build OPENCV然后构建OPENCV

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM