- 博客(2)
- 收藏
- 关注
原创 jupyter lab 快速格式化代码 PEP8规范化
安装步骤 1(安装插件本身)pip安装pip install jupyterlab_code_formatterconda安装conda install -c conda-forge jupyterlab_code_formatter如果你的jupyter lab版本小于3.0.0 还需要执行以下代码jupyter serverextension enable --py jupyterlab_code_formatterjupyter labextension instal.
2021-07-17 21:01:40
3129
原创 python中使用numpy.fft.fft2进行图像傅里叶变换 ValueError: Shape and axes have different lengths.的解决
如图 使用np.fft.fft2对图片进行傅里叶变换时,遇到了这样的错误。请一定要查看图片路径是否正确,我就是因为图片路径没设置对才出现了这个错误。下面是错误代码,我误认为图片和程序在同一路径下其实并不是img = cv2.imread('fft.jpg', 0)f = np.fft.fft2(img) # 对2维图像进行傅里叶变换fshift = np.fft.fftshift(f) # 将图像中的低频部分移动到图像的中心img = cv2.imread('D:\study\f..
2020-12-08 20:00:21
1548
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人