Downloading data from http://mlr.cs.umass.edu/ml/machine-learning-databases/spambase/spambase.data
<urlopen error [Errno 11001] getaddrinfo failed> vs2019 Python编程遇到这个问题怎么解决?
import cv2
img = cv2.imread("lena.jpg")
img_hsv = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
turn_green_hsv = img_hsv.copy()
turn_green_hsv[:, :, 0] = (turn_green_hsv[:, :, 0] - 30) % 180
turn_green_img = cv2.cvtColor(turn_green_hsv, cv2.COLOR_HSV2BGR)
cv2.imshow("test", turn_green_img)
cv2.waitKey(0)