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() returns bool (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

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

css - Language-specific LESS classes which contain @font-faces not working -