![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬坑日记
七月屋檐
这个作者很懒,什么都没留下…
展开
-
python caffe 识别文件出现参数尺寸错误
错误类型Memory required for data: 432688F0601 14:55:27.226405 329656 net.cpp:141] Check failed: param_size <= num_param_blobs (1 vs. 0) Too many params specified for layer drop4*** Check failure stack trace: ***Aborted (core dumped)得到caffe模型后,采用模型进行测试原创 2021-06-01 15:00:55 · 231 阅读 · 0 评论 -
python import 文件
python 导入同目录下的class 文件在导入文件模块不对时,会进行报错:错误问题报错类型1:TypeError: 'module' object is not callable报错类型2:AttributeError: type object 'Book' has no attribute 'Book'demo创建一个Book 类# Book.pyclass Book(object): """docstring for Book""" def __init__(self,原创 2021-05-20 15:50:38 · 684 阅读 · 0 评论 -
python使用opencv报错
错误:QObject::moveToThread: Current thread (0x55ebcb7d8980) is not the object's thread (0x55ebcbb38fb0).Cannot move to target thread (0x55ebcb7d8980)分析方法一(无效)网络资料,表示该问题由于缺少QT安装包引起的安装qt包:conda install pyqtCollecting package metadata (current_repodat原创 2021-05-20 08:57:28 · 291 阅读 · 0 评论 -
python-opencv创建空白图
使用 python-opencv 创建背景图片,进行边缘提取出。创建空白图片单通道import cv2import numpy as npimg = np.zeros((10, 10), np.uint8)# 浅灰色背景img.fill(200)cv2.imshow('img', img)cv2.waitKey(0)三通道彩色图import cv2import numpy as npimg = np.zeros((10, 10, 3), np.uint8)# 浅灰色背景i原创 2021-05-18 17:31:39 · 27367 阅读 · 1 评论 -
python打印图像所有的像素值
采用np.set_printoptions()进行打印img = cv2.imread('./test.jpg')np.set_printoptions(threshold=sys.maxsize)print(img)错误:原代码:np.set_printoptions(threshold=np.nan)报错:ValueError: threshold must be non-NAN, try sys.maxsize for untruncated representation解决:原创 2021-05-18 14:44:57 · 2942 阅读 · 0 评论