![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python编程
wp1988
这个作者很懒,什么都没留下…
展开
-
Python调用VTK模块显示.vtk文件
import vtk aRenderer=vtk.vtkRenderer()renWin=vtk.vtkRenderWindow()renWin.AddRenderer(aRenderer)iren=vtk.vtkRenderWindowInteractor()iren.SetRenderWindow(renWin)vtkReader=vtk.vtkPolyDataReader()vtkReade原创 2016-10-27 20:56:30 · 7501 阅读 · 11 评论 -
关于Windows10系统安装Python模块问题
本人所使用的系统是windows10,64位系统,Python为3.5版本。以下问题都是在此系统上完成,至于其他系统是否有效,需要大家自行参考实践。 1当使用cmd进入Python环境时,发现Python环境不能进入,需要在设置系统环境;pip install 安装包不能安装的时候,也需要设置相应的系统环境。 2目前pip版本大于10以后,pip 就会出问题,此时可以使用python -m p...原创 2018-10-20 10:48:57 · 1468 阅读 · 0 评论 -
转载:module 'cv2.cv2' has no attribute 'xfeatures2d'(问题已解决,亲测有效!)
https://blog.csdn.net/weixin_43167047/article/details/82841750 C:\projects\opencv-python\opencv_contrib\modules\xfeatures2d\src\sift.cpp:1207: error: (-213:The function/feature is not implemented) Th...转载 2018-11-16 20:54:15 · 728 阅读 · 0 评论 -
使用Python将图像批量转换为灰度图像并保存
from PIL import Image import os input_dir = '输入文件夹/' out_dir = '输出文件夹/' a = os.listdir(file_dir) for i in a: print(i) I = Image.open(file_dir+i) L = I.convert('L') L.save(out_dir+i)...原创 2019-01-08 09:45:35 · 12883 阅读 · 13 评论