Trying to access webcam (video 0) using opencv, python and I get the following error:
cap = cv2.VideoCapture(0)
pos_frame = cap.get(cv2.CAP_PROP_POS_FRAMES)
I0626 11:31:59.156796 18887 net.cpp:744] Ignoring source layer silence_rpn_bbox_pred
VIDEOIO ERROR: V4L2: getting property #1 is not supported
VIDEOIO ERROR: V4L2: getting property #1 is not supported -1.0 frames
VIDEOIO ERROR: V4L2: getting property #1 is not supported
VIDEOIO ERROR: V4L2: getting property #7 is not supported
Any leads will be appreciated