使用PIL Image 和 cv2 show image的結果不同,請問該如何調整?
2019/12/23 09:52 上午
電腦視覺深度學習討論版
Ren
觀看數:3
回答數:1
收藏數:0
cvdl-1
cvdl-1-d02
使用PIL Image 和 cv2 show image的結果不同,請問該如何調整?
例如:
img_hls = cv2.cvtColor(img, cv2.COLOR_BGR2HLS)
Image.fromarray(img_hls)
cv2.imshow("img_hls",img_hls)
k = cv2.waitKey(0)
if k == ord('q'):
cv2.destroyAllWindows()
break