Go to Post AndyMark has done something amazing. - Sam390250 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2016, 20:09
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 85
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2016, 02:59
dcarr's Avatar
dcarr dcarr is offline
#HoldStrong
AKA: David Carr
FRC #3309 (Friarbots)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2009
Location: Anaheim
Posts: 954
dcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond reputedcarr has a reputation beyond repute
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?
__________________
Team 3309
2016 Los Angeles Chairman's Award Winner
2016 Orange County Regional Winner with 3476 & 6220
Team3309.org
Orange County Robotics Alliance
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2016, 13:57
snekiam snekiam is offline
Registered User
FRC #3322 (Eagle Imperium)
Team Role: Programmer
 
Join Date: Dec 2015
Rookie Year: 2010
Location: SE Michigan
Posts: 85
snekiam has a spectacular aura aboutsnekiam has a spectacular aura aboutsnekiam has a spectacular aura about
Quote:
Originally Posted by dcarr View Post
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
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2016, 21:26
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 43
BenBernard is an unknown quantity at this point
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

Last edited by BenBernard : 10-02-2016 at 21:59.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2016, 14:55
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 192
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
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?
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2016, 16:44
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 43
BenBernard is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:00.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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