Ask Your Question

JyotiS's profile - activity

2017-03-27 19:14:20 -0600 asked a question Unable to open video link

I am trying to use Opencv but it seems that its not installed properly. I am unable to play video thru the below link but can open webcam if I change the "LINK" to zero(0)

import cv2 from cv2 import * capture = cv2.VideoCapture("LINK") while True: ret, img = capture.read() cv2.imshow('some', img) if 0xFF & cv2.waitKey(5) == 27: break cv2.destroyAllWindows()

getting error as: File "<ipython-input-7-7543b3b7356f>", line 6, in <module> cv2.imshow('some', img)

error: ........\opencv\modules\highgui\src\window.cpp:261: error: (-215) size.width>0 && size.height>0 in function cv::imshow