简体   繁体   中英

Python open cv2 ip web cam doesn't work its showing error

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'
>>> 

check this It's grametical mistakes

cv2.imshow("capturing",frame)

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