opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type

简介: opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type

Python调用OpenCV,莫名其妙出现以下错误:

Traceback (most recent call last):
  File "./consite_faceid.py", line 293, in consite_faceid_post_action
    str_img = cv2.imencode('.jpg', img)[1].tostring()
error: OpenCV(3.4.5) /home/quantum6/gh-install-cuda9/opencv-3.4.5/modules/core/src/matrix_wrap.cpp:840: error: (-213:The function/feature is not implemented) Unknown/unsupported array type in function 'type'
(308, 'traceback.print_exc():', None)
(309, 'traceback.format_exc():\nTraceback (most recent call last):\n  File "./consite_faceid.py", line 293, in consite_faceid_post_action\n    str_img = cv2.imencode(\'.jpg\', img)[1].tostring()\nerror: OpenCV(3.4.5) /home/quantum6/gh-install-cuda9/opencv-3.4.5/modules/core/src/matrix_wrap.cpp:840: error: (-213:The function/feature is not implemented) Unknown/unsupported array type in function \'type\'\n\n')

反复编译了几次OpenCV,还是错误.

后来卸载OpenCV:

sudo pip uninstall opencv-python
sudo apt remove    python-opencv
目录
相关文章
|
IDE PyTorch 网络安全
|
算法 C# C++
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
HALCON error #1201: Wrong type of control parameter: 1 in operator threshold
error C2449: found ‘{‘ at file scope (missing function header?)和error C2059: syntax error : ‘}‘
error C2449: found ‘{‘ at file scope (missing function header?)和error C2059: syntax error : ‘}‘
130 0
|
7月前
|
前端开发
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
Google Earth Engine(GEE)——argument ‘input‘: Invalid type. Expected type: Image<unknown bands>错误
82 0
|
7月前
|
计算机视觉 Python
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
180 0
|
关系型数据库 MySQL C++
Error:error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
Error:error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function
190 0
|
机器学习/深度学习 Windows
raise RuntimeError(‘Error(s) in loading state_dict for {}:\n\t{}‘.format( RuntimeError: Error(s)..报错
即load_state_dict(fsd,strict=False) 属性strict;当strict=True,要求预训练练权重层数的键值与新构建的模型中的权重层数名称完全吻合;
1563 0
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
163 0
|
计算机视觉
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
opencv出错:error: (-213:The function/feature is not implemented) Unknown/unsupported array type
480 0
解决办法:error: unknown type name ‘__int64‘
解决办法:error: unknown type name ‘__int64‘
507 0