共 3 篇文章 |
|
import numpy as npimport matplotlib.pyplot as plt# 显示中文plt.rcParams[''font.sans-serif''] = [u''SimHei'']plt.rcParams[''axes.unicode_minus''] = False%matplotlib inlinex=np.linspace(0,5*np.pi,1000)y1=np.sin(x)y2=np.sin(2*x)plt.plot(x,y1)plt.plot(x,y2)# 填充plt.fill(x,y... 阅11 转0 评0 公众公开 23-10-20 14:09 |
10 个图像处理的Python库!SimpleCV建立在OpenCV、PIL(Python Imaging Library)和NumPy之上,为用户提供了一组简单而强大的函数和工具,用于加载、处理和分析图像。# Read an image with OpenCV and convert it to the RGB colorspaceimage = cv2.imread("image.jpg")image = cv2.cvtColor(image, cv2.# Augment an imagetransform... 阅2 转0 评0 公众公开 23-10-20 14:03 |
# pip install pyspeedtest# pip install speedtest# pip install speedtest-cli#method 1import speedtestspeedTest = speedtest.# Get Exif of Photo# Method 1# pip install pillowimport PIL.Imageimport PIL.ExifTagsimg = PIL.Image.open("Img.jpg")exif_data = {img = cv2.imread(''img.jpg'')grayimg = cv2.... 阅3 转0 评0 公众公开 23-10-20 13:57 |