Reputation: 31
Python open cv2 ip web cam doesn't work its showing error....my ip is also correct but
cap = cv2.VideoCapture('http://192.168.4.18:8080/Image')
while True:
ret, frame = cap.read()
cv2.imgshow("Capturing",frame)
#print('Running..')
if cv2.waitKey(1) & 0xFF == ord('q'):
break
Error
Traceback (most recent call last):
cv2.imgshow("Capturing",frame)
AttributeError: module 'cv2.cv2' has no attribute 'imgshow'
>>>
Upvotes: 0
Views: 137
Reputation: 37
Change imgshow to imshow
I.e.,
cv2.imshow("capturing",frame)
Open cv2 have function called as imshow which help us to show the frames.
For more info you should visit
Upvotes: 0