Go to Post I think that's what they think you will think, therefore you are thinking what they want you to think. - Wetzel [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
  #1   Spotlight this post!  
Unread 20-01-2007, 13:29
theycallhimtom theycallhimtom is offline
Registered User
AKA: Tom Conerly
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lake Oswego, Oregon
Posts: 52
theycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura about
Send a message via AIM to theycallhimtom Send a message via MSN to theycallhimtom
Camera finds overhead lights not green light

Can anyone help me out? Heres what I got.

I'm using Kevins's version 2.1 code the bells and whistles version. The camera through ifiloader is showing that it is locked on but it finds different places every quarter second. So in ifiloader it says it found a target at some pan and tilt angle with very high error. Then it finds the target at a different pan and tilt location with equally large error.

I check and the pan and tilt servo are correctly mounted and plugged in. Using the interactive PWM adjustment menu through ifiloader I verified that up is really up on the tilt servo and left and right are correct on the pan servo. I have been playing with different values for almost everything and I still cannot get it to track the green light.

My setup is the camera is mounted about a foot off the ground looking up at the light which is maybe 10 feet away on the top of the rack. The room has flourescent lights maybe 2 to 3 feet above the rack. The lights aren't directly behind the camera or anything. I have also checked that the angle to find the light is within the max and min pan and tilt values. Any ideas? Thanks for the help.
  #2   Spotlight this post!  
Unread 20-01-2007, 13:45
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 finds overhead lights not green light

Quote:
Originally Posted by theycallhimtom View Post
Can anyone help me out? Heres what I got.

I'm using Kevins's version 2.1 code the bells and whistles version. The camera through ifiloader is showing that it is locked on but it finds different places every quarter second. So in ifiloader it says it found a target at some pan and tilt angle with very high error. Then it finds the target at a different pan and tilt location with equally large error.

I check and the pan and tilt servo are correctly mounted and plugged in. Using the interactive PWM adjustment menu through ifiloader I verified that up is really up on the tilt servo and left and right are correct on the pan servo. I have been playing with different values for almost everything and I still cannot get it to track the green light.

My setup is the camera is mounted about a foot off the ground looking up at the light which is maybe 10 feet away on the top of the rack. The room has flourescent lights maybe 2 to 3 feet above the rack. The lights aren't directly behind the camera or anything. I have also checked that the angle to find the light is within the max and min pan and tilt values. Any ideas? Thanks for the help.
Did you change the default calibration values?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #3   Spotlight this post!  
Unread 20-01-2007, 13:53
theycallhimtom theycallhimtom is offline
Registered User
AKA: Tom Conerly
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lake Oswego, Oregon
Posts: 52
theycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura about
Send a message via AIM to theycallhimtom Send a message via MSN to theycallhimtom
Re: Camera finds overhead lights not green light

No the values are straight out of your code. I have only changed the mapping of the servos to match what I have. I have also tried changing the direction of the tilt and pan servo to +1 or -1 as many people have had that problem before.
  #4   Spotlight this post!  
Unread 20-01-2007, 15:59
theycallhimtom theycallhimtom is offline
Registered User
AKA: Tom Conerly
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lake Oswego, Oregon
Posts: 52
theycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura about
Send a message via AIM to theycallhimtom Send a message via MSN to theycallhimtom
Re: Camera finds overhead lights not green light

So I got it to track but in a roundabout way. The old java program that ifirobotics gave out last year that allowed us to download a frame and see the picture. The problem with that program is that it does not use the settings from Kevin's code. So I edited the source so it would use the settings from Kevin's code and downloaded a picture. The default settings for the light in Kevin's code also detected part of our overhead lights. I found a much smaller range for colors that works very well for our conditions.

By the way the camera using Kevin's default settings sees everything but the light as purple and the light as a blue. The fluorescent lights showed up as yellow/blue.
  #5   Spotlight this post!  
Unread 20-01-2007, 17:37
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 finds overhead lights not green light

Quote:
Originally Posted by theycallhimtom View Post
...the camera using Kevin's default settings sees everything but the light as purple and the light as a blue. The fluorescent lights showed up as yellow/blue.
That's because the camera is being told to look at the image using the YCrCb color space, but the program is presenting it as if it were RGB. The actual hue of the green light is very consistent even as the intensity varies with distance, so it's a lot easier to find a good range of values that will let you track it.
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
Green light same color as overhead light Ethulin Programming 13 02-08-2007 15:24
Green Camera Light Questions Naveen Electrical 18 24-01-2007 22:52
Lights (not the green target light) FourPenguins Electrical 10 23-01-2007 13:23
camera trouble,cant tell the green-light from regular white light Nimmy Programming 26 14-01-2007 14:53
Florescent lights green on both sides?!? Calvin Programming 3 09-02-2006 11:02


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

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