opencv3.0 - Reading a video in OpenCV -
while working video in opencv using python, when reading frames using
cap=cv2.videocapture(0) ret,frame=cap.read() what variables ret , frame store?
reference material: getting started videos
ret,frame=cap.read()
from documentation above:
cap.read()returnsbool(true/false). if frame read correctly,true. can check end of video checking return value.
so in assence,
ret = true or ret = false based on whether frame read correctly , frame actual frame read (provided ret == true)
Comments
Post a Comment