Ask Your Question

iftheqhar's profile - activity

2017-09-21 00:39:18 -0600 received badge  Famous Question (source)
2015-07-18 18:27:18 -0600 received badge  Notable Question (source)
2015-03-04 12:07:51 -0600 received badge  Student (source)
2014-11-24 20:46:46 -0600 received badge  Popular Question (source)
2013-07-02 02:17:33 -0600 commented answer frame = cv2.VideoCapture.read(capture) AttributeError: 'builtin_function_or_method' object has no attribute 'read'

thank you its workin

2013-07-02 01:41:59 -0600 commented answer frame = cv2.VideoCapture.read(capture) AttributeError: 'builtin_function_or_method' object has no attribute 'read'

am getting this error now

frame = Capture.read(capture) NameError: global name 'Capture' is not defined

2013-07-01 08:24:35 -0600 asked a question frame = cv2.VideoCapture.read(capture) AttributeError: 'builtin_function_or_method' object has no attribute 'read'

am trying to capture video from my web cam and display it on my screen my code is

import cv2
import numpy as np
from matplotlib import pyplot as plt

capture = cv2.VideoCapture(0)
def repeat():
   if(capture):
         frame = cv2.VideoCapture.read(capture)
         cv2.imshow("w1",frame)
while True:
   repeat()

am getting this error frame = cv2.VideoCapture.read(capture) AttributeError: 'builtin_function_or_method' object has no attribute 'read'