简体   繁体   中英

<built-in function imshow> returned NULL without setting an error

I tried the below code and got the following error " returned NULL without setting an error"

import cv2
img=cv2.imread('C:\\Users\\us\\Downloads\\spurthi122.png')
l=cv2.cvtColor(img,cv2.COLOR_BGR2HSV)
cv2.imshow(l,img)

please help me in eliminating the error. Thanks in advance for the help!!!

img=cv2.imread('C:\Users\us\Downloads\spurthi122.png')

删除\\\\斜杠并替换为\\

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM