Module Expr Str Import alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Num Num Call NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad While SubscriptLoad Call AttributeLoad NameLoad attr Index Num body AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str Return Assign NameStore Num Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr Num While SubscriptLoad Call AttributeLoad NameLoad attr Index Num body Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad AugAssignAdd NameStore Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr BinOpDiv Num BinOpSub NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore ListComp SubscriptLoad NameLoad Slice Num comprehension NameStore Call NameLoad AttributeLoad NameLoad attr CompareIn Str NameLoad Assign NameStore Dict For NameStore NameLoad body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str NameLoad Str Exec NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str NameLoad Str Call NameLoad NameLoad Str Print NameLoad Exec NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Lambda arguments args NameParam defaults NameLoad TupleLoad body While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num If CompareEq NameLoad Num body Break orelse If CompareEq NameLoad Call NameLoad Str body Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Print NameLoad Str SubscriptLoad NameLoad Index NameLoad orelse If CompareEq NameLoad Call NameLoad Str body Assign NameStore Call NameLoad Str If CompareNotIn BinOpAdd Str NameLoad Call NameLoad AttributeLoad NameLoad attr body Print NameLoad Str Print Str ListComp SubscriptLoad NameLoad Slice Num comprehension NameStore Call NameLoad AttributeLoad NameLoad attr CompareIn Str NameLoad orelse Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If CompareEq NameLoad Call NameLoad Str body Print AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Print NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Print NameLoad Str SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr
N/A N/A 
press 'p' to print camera information
press 's' to set camera property. Try 'p' first to see property names then insert them in console.
press 'f' to print measured frame rate (the frequency VideoCapture::read() is called).
 N/A cv2 time clock OpenCV_Cam N/A object N/A __init__ N/A N/A self src N/A None N/A N/A N/A N/A self start_cam src N/A N/A N/A self __fcount N/A self __frate N/A self __start N/A 0 0 N/A clock N/A cam_count N/A N/A N/A N/A N/A cam_idx 0 N/A cap N/A N/A cv2 VideoCapture cam_idx N/A N/A N/A N/A cap read N/A 0 N/A N/A cam_idx 1 N/A cap N/A N/A cv2 VideoCapture cam_idx N/A cam_idx N/A staticmethod start_cam N/A N/A self src N/A None N/A N/A N/A src None N/A N/A N/A self cam N/A VideoCapture src N/A N/A N/A N/A N/A self cam isOpened N/A N/A N/A ValueError N/A N/A Cannot open  src as VideoCapture N/A N/A idx 1 N/A N/A cam1 cam2 N/A N/A N/A cv2 VideoCapture 0 N/A N/A cv2 VideoCapture 1 N/A N/A N/A N/A cam2 read N/A 0 N/A N/A N/A N/A cam1 release N/A cam1 cam2 N/A idx 1 N/A cam2 N/A N/A cv2 VideoCapture idx N/A N/A self cam cam1 N/A N/A N/A N/A N/A self cam isOpened N/A N/A N/A Error Cannot open any camera N/A size N/A N/A self N/A N/A N/A w N/A N/A N/A self cam get N/A N/A cv2 cv CV_CAP_PROP_FRAME_WIDTH N/A h N/A N/A N/A self cam get N/A N/A cv2 cv CV_CAP_PROP_FRAME_HEIGHT N/A N/A N/A int w N/A int h N/A property size N/A N/A self shape N/A N/A N/A N/A N/A N/A self cam set N/A N/A cv2 cv CV_CAP_PROP_FRAME_WIDTH N/A shape N/A 0 N/A N/A N/A N/A self cam set N/A N/A cv2 cv CV_CAP_PROP_FRAME_HEIGHT N/A shape N/A 1 N/A N/A size setter read N/A N/A self N/A N/A N/A N/A self __fcount 1 N/A N/A self __frame N/A N/A N/A N/A self cam read N/A 1 N/A N/A N/A self __fcount 10 N/A N/A end N/A clock N/A N/A self __frate N/A 10 N/A end N/A self __start N/A N/A self __start N/A clock N/A N/A self __fcount 0 N/A N/A self __frame N/A frame_rate N/A N/A self N/A N/A N/A N/A self __frate N/A property info N/A N/A self N/A N/A N/A vars N/A N/A x N/A 12 N/A x N/A dir N/A cv2 cv N/A CV_CAP_PROP x N/A ret N/A N/A p vars N/A N/A cmd N/A N/A N/A N/A ret[' p '] = self.cam.get(cv2.cv.CV_CAP_PROP_ p ) N/A cmd N/A ret N/A property set N/A N/A self property value N/A N/A N/A cmd N/A N/A N/A N/A self.cam.set( cv2.cv.CV_CAP_PROP_ property ,  N/A str value ) N/A cmd N/A cmd N/A cam_loop N/A N/A self func params N/A N/A N/A N/A x N/A x N/A N/A N/A True N/A N/A input N/A N/A self read N/A output N/A func input params N/A window_name N/A func __name__ N/A N/A window_name <lambda> N/A N/A window_name camera image N/A N/A N/A cv2 imshow window_name output N/A k N/A N/A cv2 waitKey 5 N/A N/A k 27 N/A N/A N/A N/A N/A k N/A ord p N/A N/A info N/A self info N/A i info N/A N/A i = N/A info N/A i N/A N/A N/A k N/A ord s N/A N/A p N/A raw_input type property: N/A N/A N/A cv2.cv.CV_CAP_PROP_ p N/A dir N/A cv2 cv N/A N/A p  is not a legal property name. N/A Here are legal ones: N/A N/A x N/A 12 N/A x N/A dir N/A cv2 cv N/A CV_CAP_PROP x N/A N/A v N/A raw_input type value: N/A N/A N/A self set p v N/A N/A N/A k N/A ord f N/A N/A N/A self frame_rate N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self exc_type exc_value traceback N/A N/A N/A N/A N/A N/A self cam release N/A release N/A N/A self N/A N/A N/A N/A N/A N/A self cam release N/A N/A N/A N/A __name__ __main__ N/A N/A __doc__ N/A cam N/A OpenCV_Cam N/A N/A cam size N/A 800 600 N/A info N/A cam info N/A i info N/A N/A i = N/A info N/A i N/A N/A N/A cam cam_loop