Go to Post FIRST is like pizza--you and I might prefer different toppings, but there's no wrong way to do it. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 19-01-2007, 21:10
Jade Jade is offline
Registered User
no team
 
Join Date: Jan 2007
Location: Houston
Posts: 3
Jade is an unknown quantity at this point
Re: CAMERA

We are having trouble getting our camera to follow the target. It gets the target but doesn't follow it, can you help? Also can we have your code for easy c
  #17   Spotlight this post!  
Unread 19-01-2007, 22:46
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: CAMERA

I know it's repetitive, but we got the same thing. Using LabView, it picks up the color, but doesn't track it. Also, we've tried to get our light to show up green, but it just comes up as white. We used different lighting conditions, but because it's always white it usually tries to track the ceiling lights.
__________________
Quote:
The difference between theory and application is that in theory, theory and application are the same; In application, they are not.
  #18   Spotlight this post!  
Unread 20-01-2007, 00:41
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Smile Re: CAMERA

kevin, thankyou i will try this monday morning unfortnately I dont have access to the school over the weekend.
  #19   Spotlight this post!  
Unread 20-01-2007, 10:06
kevin.fort kevin.fort is offline
President-Team 1001
FRC #1001 (Hacksaw Robotics)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Cleveland
Posts: 38
kevin.fort is on a distinguished road
Send a message via AIM to kevin.fort
Re: CAMERA

We have the same problem as mentioned twice in this thread that with labview the camera thinks that the green light is white. Also when we use the default code provided by kevin.org the camera will not lock onto the light. It continues scanning and when the defualt values are changed to what labview says they should be closer to the camera will recognize the light(the red light comes on) but it wont stay on it because it keeps going back and forth between the lights on the ceiling.
any ideas or suggestions would be greatly appreciated
Thanks
__________________
We build our bots with hacksaws
websites too: http://hacksaw.brush.googlepages.com
  #20   Spotlight this post!  
Unread 20-01-2007, 11:42
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: CAMERA

All,

Kevin's code works fine "right out of the box" with no modifications.

Please read this FAQ (particularly Q9).

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #21   Spotlight this post!  
Unread 22-01-2007, 09:03
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: CAMERA

Quote:
Originally Posted by Kevin Watson View Post
Look for this code in tracking.h:

// This value defines how many "slow loops" to wait before
// sending the tracking servo(s) to their next destination
// while in search mode. This provides a small delay for the
// camera to lock onto the target between position changes.
#define SEARCH_DELAY_DEFAULT 6

and increase this value to 10 and see it it starts working.

-Kevin

Kevin,
We recompiled with the increase to 10 of the SEARCH_DELAY_DEFAULT. The camera panned slower, but still didn't respond with anything other than "searching..." We had some students play with the configuration (I know, they shouldn't have...). Now we want to revert to the default calibration, how do we go about doing that?
Thanks!
Team 2051
  #22   Spotlight this post!  
Unread 22-01-2007, 09:51
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: CAMERA

Quote:
Originally Posted by sniggel View Post
Kevin,
We recompiled with the increase to 10 of the SEARCH_DELAY_DEFAULT. The camera panned slower, but still didn't respond with anything other than "searching..." We had some students play with the configuration (I know, they shouldn't have...). Now we want to revert to the default calibration, how do we go about doing that?
Thanks!
Team 2051
OK. We got it to work and follow the green light. But it only works when we have the light bars facing the camera (not through the white HDPE panel).
  #23   Spotlight this post!  
Unread 22-01-2007, 10:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: CAMERA

Quote:
Originally Posted by sniggel View Post
OK. We got it to work and follow the green light. But it only works when we have the light bars facing the camera (not through the white HDPE panel).
That sounds like you might not be supplying enough power to the target lights. Are you using a good supply capable of several amps? If you are using a robot battery, is it fully charged?
  #24   Spotlight this post!  
Unread 22-01-2007, 11:10
sniggel sniggel is offline
Registered User
FRC #2051
 
Join Date: Jan 2007
Location: A.W. Beattie
Posts: 28
sniggel is an unknown quantity at this point
Re: CAMERA

thanks. this helped. we are now tracking the light with one minor problem. if we use the diffuser(the white board in front of the lights) the camera keeps searching, if we turn the light tubes directly to the camera the camera tracks the lights. has anybody else had this problem? and any suggestions on what might need modified?
  #25   Spotlight this post!  
Unread 22-01-2007, 11:46
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CAMERA

Quote:
Originally Posted by sniggel View Post
thanks. this helped. we are now tracking the light with one minor problem. if we use the diffuser(the white board in front of the lights) the camera keeps searching, if we turn the light tubes directly to the camera the camera tracks the lights. has anybody else had this problem? and any suggestions on what might need modified?
I think Alan's suggestion makes a lot of sense. The light is pulling somewhere around an amp of current, which the robot battery can easilly deliver. How far away is the light from the camera? Also, make sure you move the search delay back to six.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #26   Spotlight this post!  
Unread 22-01-2007, 11:56
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CAMERA

Quote:
Originally Posted by sniggel View Post
Kevin,
We recompiled with the increase to 10 of the SEARCH_DELAY_DEFAULT. The camera panned slower, but still didn't respond with anything other than "searching..." We had some students play with the configuration (I know, they shouldn't have...). Now we want to revert to the default calibration, how do we go about doing that?
Thanks!
Team 2051
If using the "streamlined" version of the code, extract camera.h and tracking.h from the zip archive and drop 'em into your build directory.

If using the "bells and whistles" version, go into the camera menu by typing the letter c into the little "to port" box and hit return. From there you can restore the default settings. Do the same for the tracking menu but use the letter t.

Make sure you save the changes once you've recalled the default values.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #27   Spotlight this post!  
Unread 22-01-2007, 13:25
petek's Avatar
petek petek is offline
What would Dave do?
AKA: Peter Kieselbach
FRC #3654 (Tech Tigers)
Team Role: Mentor
 
Join Date: May 2002
Rookie Year: 2002
Location: Middletown, CT
Posts: 923
petek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond reputepetek has a reputation beyond repute
Send a message via AIM to petek
Re: CAMERA

Quote:
Originally Posted by Kevin Watson View Post
I think Alan's suggestion makes a lot of sense. The light is pulling somewhere around an amp of current, which the robot battery can easilly deliver. How far away is the light from the camera? Also, make sure you move the search delay back to six.

-Kevin
We saw this problem (low light intensity) this past weekend. A couple of observations I made:

When powering the light from a battery, you should disconnect when not actually trying to acquire the light. The debugging dimension has a different temporal scale than the physical world, and the battery is living in the latter. It appears that one charge is good for testing one - or at maximum, two - ideas or one configuration error.

When packing 10 lbs in a 5 lb box, like we've done with all the wire, ballasts, and bulbs in the light enclosure, you might expect that the light performance may not be optimal. Especially when the light gets put together in a big rush because you have something more important to do - like debugging camera code. Shadows of a wiring rats nest projected onto the diffuser are probably not the best thing to calibrate to.

When all else fails, plug the camera into the LabView CMUcam GUI and take a peek at what it is seeing, rather than tweaking settings blindly while the battery discharges.
__________________
Pete Kieselbach
#4

  #28   Spotlight this post!  
Unread 01-02-2007, 20:17
Nicole_Ypes Nicole_Ypes is offline
Nicole Ypes
FRC #1547 (Waldo)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Waldo!
Posts: 7
Nicole_Ypes is an unknown quantity at this point
Send a message via MSN to Nicole_Ypes
Thumbs up Re: CAMERA

Quote:
Originally Posted by Slick View Post
Need help… We are having a serious problem it seems in calibrating our camera. We are using LABview and putting the target(green light) about 12 feet away. The camera seems to only see a bright white light. We run the program (Bells and Whistles version) and the camera pans and tilts correctly (it seems), but never acquires the target. Can anyone tell me how to calibrate the camera…. And what code needs to change to acquire the target. Shouldn’t the camera stop when the target is found? What are we missing?
Try using a bright light. And also set the white balancing on the camera. May I sugest the briliant program by Kevin for focusing and tweaking you camera. It uses java and I believe the second tab from the left will answer alot of your questions!
  #29   Spotlight this post!  
Unread 03-02-2007, 10:50
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: CAMERA

Hey, Kevin, just a personal question, but do you think that finding the RBG or YcrBrcg(sorry, I forogt how it's called)parameters(color level, max-min etc.) on LABView and then entering them to the color parameters in your code will work even better than setting them on LABView?
  #30   Spotlight this post!  
Unread 03-02-2007, 12:15
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CAMERA

Quote:
Originally Posted by Bomberofdoom View Post
Hey, Kevin, just a personal question, but do you think that finding the RBG or YcrBrcg(sorry, I forogt how it's called)parameters(color level, max-min etc.) on LABView and then entering them to the color parameters in your code will work even better than setting them on LABView?
FIRST's James Rahaim spent quite a bit of time tweaking those values to work under many different lighting conditions. In general, you don't need to change the calibration values, but if you do decide to change them, don't use the RGB color space because it won't work nearly as well. I haven't used the LabVIEW tool, so I can't really say if it's better than the Java-based tool.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Troubles cmurdoch Programming 9 11-02-2006 11:34
No lights on camera Bob22341 Programming 4 08-02-2006 13:27
camera question naor52 Programming 8 03-02-2006 00:07
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56
camera problem miscar Programming 2 23-01-2005 12:06


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

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