2016-11-21 06:33:12 -0600 | commented question | How to read video from camera using opencv python unfortunately I do not have a builtin camera; this computer is a desktop in my office. |
2016-11-21 06:25:20 -0600 | commented question | How to read video from camera using opencv python Thanks for the reply Berak. The os is ms windows 10 pro. I would prefer to stick to opencv in python. |
2016-11-21 03:57:54 -0600 | asked a question | How to read video from camera using opencv python Hi guys, I want to perform some simple video processing on camera feed using opencv(3.1) python(3.5) programming. The camera I am using is Thorlabs DCC1545M (monochrome). The camera is able to show the live feed through its software uc480 viewer. However, when I try to read the camera through python, using the following standard code (given below), it fails, as the 'ret' remains 'FALSE'. I also tried changing the argument in the "cap = cv2.VideoCapture(0)" from '0' to '1' and other numbers, but that did not help either. I guess it should be straightforward, but I am doing something obviously wrong. Any help would be much appreciated! Thanks, Ankur Code: |