Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Raspberry Pi OpenCV With Lifecam HD-3000 (http://www.chiefdelphi.com/forums/showthread.php?t=143476)

snekiam 02-08-2016 08:09 PM

Raspberry Pi OpenCV With Lifecam HD-3000
 
Has anyone been able to change camera parameters programmatically (such as exposure or buffer size) using the Microsoft LifeCam HD-3000? When we attempt to do this, we get an "error property not supported by device". Yet I am able to change some of these parameters from the command line. Anyone have any ideas?

dcarr 02-09-2016 02:59 AM

Re: Raspberry Pi OpenCV With Lifecam HD-3000
 
What are you using to change the parameters from the command line? Are you able to successfully capture images with a tool like v4l2-ctl with those settings?

snekiam 02-09-2016 01:57 PM

Quote:

Originally Posted by dcarr (Post 1537436)
What are you using to change the parameters from the command line? Are you able to successfully capture images with a tool like v4l2-ctl with those settings?

We are using V4L2-ctl to change settings from the command line. I don't know how to capture an image with v4l2-ctl

BenBernard 02-10-2016 09:26 PM

Re: Raspberry Pi OpenCV With Lifecam HD-3000
 
I have been unable to set the exposure via OpenCV calls on the pi, although the same code running in Windows or MacOSX works fine.

However, I AM able to set the exposure using v4l2-ctl:

$ v4l2-ctl --set-ctrl=exposure_auto=1
$ v4l2-ctl --set-ctrl=exposure_absolute=25

Running this before launching our OpenCV-based code seems to do the trick.

YMMV

jreneew2 02-12-2016 02:55 PM

Re: Raspberry Pi OpenCV With Lifecam HD-3000
 
Do these changes stick through restart? I'm looking for a solution as well because even when I change the setting on the lifecam through my pc, the changes are different when I put it into the roboRIO. Also, does v4l2-ctl come pre-installed on the RIO or did you install it yourself?

BenBernard 02-12-2016 04:44 PM

Re: Raspberry Pi OpenCV With Lifecam HD-3000
 
My post was regarding raspberry pi, not the roborio--I'm not sure if v4l2-ctl is pre-installed on the roborio.

The changes do not "stick" but we've added them to the shell script that starts our vision tracking app.


All times are GMT -5. The time now is 02:39 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi