其他分享
首页 > 其他分享> > 03_HSV颜色空间

03_HSV颜色空间

作者:互联网

import cv2 #opencv的缩写为cv2
import matplotlib.pyplot as plt # matplotlib库用于绘图展示
import numpy as np   # numpy数值计算工具包

# 魔法指令,直接展示图,Jupyter notebook特有
# %matplotlib inline
hsv = cv2.imread('D:/pycharm/pycharm-cope/opencv/resource/photo/01_cat.jpg', cv2.COLOR_BGR2HSV)
cv2.imshow('hsv', hsv)
cv2.waitKey(0)
cv2.destroyAllWindows()

 

标签:03,颜色,cv2,matplotlib,opencv,HSV,import,numpy,hsv
来源: https://www.cnblogs.com/tuyin/p/16546161.html