Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   camera trouble,cant tell the green-light from regular white light (http://www.chiefdelphi.com/forums/showthread.php?t=41763)

Nimmy 13-01-2006 12:01

camera trouble,cant tell the green-light from regular white light
 
our programming team has been working all week on the camera
and they can't seem to be able to tell apart the green light we got
for FRC from the regular light from lightbullbs in the room,
we tried it from diffrent distances but the green-light seems to just
be so powerful that the camera gets "blinded" by it and sees it as white

anyone else have this problem?
is it possible our green-light is to powerful? thanks in advance

(sorry for typos, in a hurry)

Rick TYler 13-01-2006 12:13

Re: camera trouble,cant tell the green-light from regular white light
 
(Rick whacks his head with the flat of his hand several times.)

I can't quite remember this conversation, but I think this is pretty close:

At the Seattle Robotic Society's Robothon event I was talking to the builder of the winner of the Robo-Magellan competition. This involved an autonomous robot covering rough ground outdoors to a goal. He mentioned that he finally had to put a filter over his CMU cam to make it work properly. Here is the part my memory fades on. I THINK he said that the camera was being oversaturated by UV light, and that adding a *framistat* level UV filter, it worked much better. Unfortunately I don't remember his name or the nature of the filter. One of our mentors is a SRS regular, I'll ask him if he knows how to find this out.

Sorry I couldn't be of more help.

Kevin Watson 13-01-2006 12:19

Re: camera trouble,cant tell the green-light from regular white light
 
Quote:

Originally Posted by Nimmy
our programming team has been working all week on the camera
and they can't seem to be able to tell apart the green light we got
for FRC from the regular light from lightbullbs in the room,
we tried it from diffrent distances but the green-light seems to just
be so powerful that the camera gets "blinded" by it and sees it as white

anyone else have this problem?
is it possible our green-light is to powerful? thanks in advance

(sorry for typos, in a hurry)

You should try loading the camera.hex file from either of the .zip archives and see if it works. The default calibration parameters should work just fine if you're using the official FIRST green light.

-Kevin

Phreakuency 13-01-2006 12:26

answer
 
I believe that the reason is that the wavelengths are close enough that it is causing the camera to detect them as the same color. This could either be due to the wavelengths as I said before, or it could be due to a setting in the camera. What I am going to try when I get ahold of the camera again is I am going to dump the camera settings into a text file and I will try to find either a contast setting or jumper, or a good filter type.
I should be able to get back to you by saturday or sunday, if I fnd anything earlier, I will let you all know.
Sincerely,
Phreakuency

Nimmy 13-01-2006 13:49

Re: answer
 
thanks guys, ill update my programming about the camera.hex
and see about that UV filter

is there a chance that the light is to bright for the camera
if we take out one of the green lights (or 2) will it make the green light
less bright? or will it then not catch it in the competition?

I was also thinking to put a layer of some whitish plastic on the light to make it less bright,

the problem is when we "grab image" and then select the green light
it highlights the greenlight and also highlights any other strong lights in the area (fire escape light for example)
it also shows the light in the RGB as green:240 blue:240, the red varies
but it is a high number

however in the edge of the green light, the green is more strong then the other colours, still not good for us though.

I will check back on saturday-sunday also

have a good weekend guys thanks :)

Matt Krass 13-01-2006 20:09

Re: answer
 
How are you powering the light? We're using a 12 volt Robot battery and its just the right brightness.

Andrew Blair 13-01-2006 20:39

Re: camera trouble,cant tell the green-light from regular white light
 
I think that the problem lies with camera exposure values. Somehow, if you don't want to use Kevin's code, you have to adjust the exposure settings so thats its dim enough that it can distinguish.

Smithvillefirst 13-01-2006 21:08

Possibly fried Board?
 
I am Anthony Peck from team1806 and My camera is not working properly the camera has Inverted Servos and WILL NOT be changed via jumpers, Is it fried?

Dman 14-01-2006 11:19

Re: camera trouble,cant tell the green-light from regular white light
 
I am also having the same trouble with the camera. The pan servo works correctly, but the tilt is inverted. I have tried repeatedly to use the jumper on the board to invert the tilt axis, but to no avail. Any advice in this matter will be greatly appreciated.

b_mallerd 14-01-2006 11:56

Re: camera trouble,cant tell the green-light from regular white light
 
Mayb you just put in the pan servo upside down? Is the arm coming out of it closer to the top?

Just a suggestion...

Kevin Watson 14-01-2006 12:12

Re: Possibly fried Board?
 
Quote:

Originally Posted by Smithvillefirst
I am Anthony Peck from team1806 and My camera is not working properly the camera has Inverted Servos and WILL NOT be changed via jumpers, Is it fried?

What exactly do you mean by inverted? Are you using the pan/tilt mechanism from the kit of parts?

-Kevin

JoshJ 14-01-2006 13:39

Re: Possibly fried Board?
 
Quote:

Originally Posted by Smithvillefirst
I am Anthony Peck from team1806 and My camera is not working properly the camera has Inverted Servos and WILL NOT be changed via jumpers, Is it fried?

I'd be willing to bet that you're camera is mounted upside down. Ours was.... :rolleyes: The serial port should be at the top, lense should be towards bottom.

Eldarion 14-01-2006 13:47

Re: camera trouble,cant tell the green-light from regular white light
 
Quote:

Originally Posted by Dman
I am also having the same trouble with the camera. The pan servo works correctly, but the tilt is inverted. I have tried repeatedly to use the jumper on the board to invert the tilt axis, but to no avail. Any advice in this matter will be greatly appreciated.

Do you have the servos connected to the camera's on-board servo drivers? If so, the tilt jumper is not the jumper identified in the instructions. To reverse the tilt, short the jumper marked as pan in the instructions.

If the servos are hooked up to the RC, just change the code :rolleyes:

Athenian Roboti 14-01-2006 18:43

Re: camera trouble,cant tell the green-light from regular white light
 
We have found theat the camera sensors are overdriven. To remedy this, we have (temporarily) put sunglasses over the camera, and this seems to have worked. We may put a dark filter over it in the future. Good luck.

Team 852-- The Athenian Robotics Collective

Mike 14-01-2006 21:48

Re: camera trouble,cant tell the green-light from regular white light
 
I was talking to Greg Marra today, who had the same problem. He finally fixed it. The problem was that he was using RGB instead of YCbCr.

Hope that helps
-Mike


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

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