Ask Your Question
0

Videocapture.get() not working

asked 2017-04-17 04:09:43 -0600

vannem95 gravatar image

I am using logitech quickcam pro and trying to get/change camera properties.(I tried v4l2 and it works but i can't change the things i want using that). Here is my code:

import cv2

import time

import os

vidcap=cv2.VideoCapture(0)

success,image = vidcap.read()

count = 0

success = True

a=10000

debug=0

print vidcap.get(0)

This is the error i get:

HIGHGUI ERROR: V4L2: Unable to get property <unknown property="" string="">(0) - Invalid argument -1.0

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-17 04:32:05 -0600

berak gravatar image

updated 2017-04-17 04:57:35 -0600

the opencv2.4 version of cap_v4l.cpp does not support CAP_PROP_POS_MSEC

other properties, like cv2.CAP_PROP_FRAME_WIDTH and cv2.CAP_PROP_FRAME_HEIGHT will most likely work.

(and effort on fixing outdated 2.4 deficiencies is usually very low)

edit flag offensive delete link more

Comments

I need to change/get the exposure times and position in millisec. Do you know of any other way to get that info?

vannem95 gravatar imagevannem95 ( 2017-04-17 06:04:24 -0600 )edit

I figured out a way around it. Thanks for your help.

vannem95 gravatar imagevannem95 ( 2017-04-20 03:30:42 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-17 04:09:43 -0600

Seen: 483 times

Last updated: Apr 17 '17