1 | initial version |
import cv2
im0 = cv2.imread("E:/code/opencv/p/piiple/image.png");
print im0 ### None
I think this holds the actual problem:
cv2.namedWindow("lll")
cap = cv2.VideoCapture(0)
while( cap.isOpened() ) :
ret,img = cap.read()
cv2.imshow("lll",img)
cv2.imwrite("lll.png",img) ### see error at QA
k = cv2.waitKey(10)
if k == 27:
break
Looking at the code, isn't it the capturing that is conflicting? Meaning that it doesnt capture a correct frame from your webcam and sendint it towards the img object?
2 | No.2 Revision |
import
Looking at the code, isn't it the capturing that is conflicting? Meaning that it doesnt capture a correct frame from your webcam and sendint it towards the img object?