Ask Your Question

biobio1's profile - activity

2017-05-10 10:06:52 -0600 asked a question reading from notebook webcam not working

Hi I tried every thing to read from my notebook web cam. No success. I read all zeros- Is it like opencv does not support certain builtin webcams? I am running windows 10 + python anaconda + opencv version 3.2.0

import numpy as np import cv2 print cv2.__version__ cap = cv2.VideoCapture(0) while 1: ok , img = cap.read() if not ok: print "error" break cv2.imshow('img', img) k = cv2.waitKey(33) if k==27: # Esc key to stop break

cap.release() cv2.destroyAllWindows()

i