![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
lance666
这个作者很懒,什么都没留下…
展开
-
列表(List) 的遍历方法收集
python list遍历原创 2023-01-03 10:22:37 · 437 阅读 · 0 评论 -
python 图片 数组到二进制的互相转换
需要导入以下包,没有的通过pip安装import matplotlib.pyplot as pltimport cv2from PIL import Imagefrom io import BytesIOimport numpy as np1.图片和数组互转# 图片转numpy数组img_path = "images/1.jpg"img_data = cv2.imread(im...转载 2020-04-19 10:33:54 · 1991 阅读 · 0 评论 -
plt 生成的图片写入内存
import matplotlib.pyplot as pltimport pylabimport imageioimport skimage.ioimport cv2import ioimport PIL#例如要显示的frame1 = plt.gca()frame1.axes.get_xaxis().set_visible(False)frame1.axes.get_ya...原创 2020-04-19 10:27:53 · 2308 阅读 · 0 评论 -
flask学习链接汇总
http://www.111com.net/phper/181537.htmhttps://www.jianshu.com/p/79095860e76d原创 2020-04-16 11:39:20 · 105 阅读 · 0 评论 -
flask学习链接
http://www.111com.net/phper/181537.htmhttps://www.jianshu.com/p/79095860e76d原创 2020-04-16 11:39:20 · 113 阅读 · 0 评论 -
python spyder多行缩进方式
往右缩进先鼠标选中要缩进的多行代码,然后按tab建往左回退同样选中多行,然后按shift+tab原创 2020-04-12 12:48:17 · 3460 阅读 · 0 评论 -
1132: error: (-2:Unspecified error) FAILED: fs.is_open(). in function 'cv::dnn::ReadProtoFromBinary
错误: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\dnn\src\caffe\caffe_io.cpp:1132: error: (-2:Unspecified error) FAILED: fs.is_open(). Can’t open “D:\jupyterNBWork\mask_rcnn-master\mask-rcnn-...原创 2020-04-12 12:39:50 · 4148 阅读 · 1 评论 -
'str' object has no attribute 'name'
imgName=‘E:\AndroidWork\Bird_Identification_App-master\Bird_Identification_Server\mask_rcnn-master\images\cars.jpg’出错版:args[‘image’]=imgName修改版:args[‘image’]=Path(imgName)用于:log.info(‘Start R-CNN M...原创 2020-04-11 20:21:13 · 1759 阅读 · 0 评论 -
python opencv加载使用内存中的图片数据
接受服务器传来图片img = request.files.get(‘img’)转换img=skimage.io.imread(img)就可以使用了比如说用于cv2.imshow(“Output (press any key to close)”, img)image=img(imH, imW) = image.shape[:2]...原创 2020-04-11 20:15:54 · 3574 阅读 · 0 评论 -
server.py: error: the following arguments are required: image
标题server.py: error: the following arguments are required: imageFile “E:\Anaconda3\lib\argparse.py”, line 2488, in exit_sys.exit(status)原因:参数没加–更改前:ap.add_argument(“image”, type=int,default=1)更改后:...原创 2020-04-11 17:53:50 · 7350 阅读 · 1 评论