Go to Post Super Bowl, P-Diddy, Diet Pepsi. Super Bowl of Smarts, Dave Lavery, Diet Coke. - Gary Dillard [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-02-2014, 15:45
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Infrared Camera Results

I believe this video adequately makes the case for why my team uses infrared for the retro illuminator.

This video is shot in our workshop under normal lighting conditions. The thin grey lines in the video are the overhead fluorescent lights. The camera is a PS3 eye cam, capturing 320x240 @ 125fps with gain set to 0. It has been modified by replacing the OEM lens assembly with one including an IR-pass, visible block filter and 4.3mm, 70deg FOV lens. The illuminator in is a single 2W 850nm IR Led on a standard star heatsink/pcb.

http://www.youtube.com/watch?v=HzzN5bDGuBc

Raw Video:
https://drive.google.com/file/d/0B4u...it?usp=sharing
  #2   Spotlight this post!  
Unread 20-02-2014, 15:54
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Infrared Camera Results

Nicely done. That makes target detection very easy!

I am toying with the concept of using an IP camera with built in IR for night vision, and Pan/Tilt.
This will be run through an offboard processor. These cameras are available for under $100 from multiple sources. Hacking them for control has already been done, so acquiring and processing images should be a snap.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #3   Spotlight this post!  
Unread 20-02-2014, 16:26
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by billbo911 View Post
I am toying with the concept of using an IP camera with built in IR for night vision, and Pan/Tilt.
You'll want to make sure you can block visible light as well as control the gain of the camera.
  #4   Spotlight this post!  
Unread 20-02-2014, 16:37
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,356
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Infrared Camera Results

Quote:
Originally Posted by sparkytwd View Post
You'll want to make sure you can block visible light as well as control the gain of the camera.
Yep, that's why this will be an off season project.

Some camera's have a moveable IR filter to help correct color in daylight. That filter will need to be swapped out for a IR pass/visible block filter. Additionally, that filter will need to be in instead of out for IR use.
Controlling exposure might be a bit more tricky. Some camera's are locked into "Auto Exposure". So, this will be a "hack", but a real learning process for all involved.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #5   Spotlight this post!  
Unread 20-02-2014, 21:52
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Infrared Camera Results

That looks fine. Though I don't know that it looks any better than what teams achieve with visible light and a quick exposure setting.

Also, I've taken infrared video of the field using a Kinect. The trusses with about 100 high intensity CANs pointing down at the field make it a bit more interesting. The tape they use to mark lines of the field, any lexan or shiny element of the field that has the right orientation will start reflecting that light back into your camera. This doesn't make it impossible, but it makes both IR and visible light a bit more challenging.

Since you don't necessarily know what will be at the arena -- you may even have a Mountain Dew vending machine within view of the field -- it isn't a horrible idea to have additional ring lights in your parts alliance. And you can use the calibration time and the dashboard's logged images to look for problems -- no matter the wavelength of the light you are processing.

Greg McKaskle
  #6   Spotlight this post!  
Unread 20-02-2014, 23:21
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Infrared Camera Results

We are also using ir light (for the third year in a row). We removed the ir filter from our 3 cameras and have added ir leds (40 per camera I believe). A method to implement would be to copy your raw image and threshold both of them different ways: grayscale and hsv, then only keep the overlap. The "equation" is img = gray - hsv, then subtract img from gray again so the lights are removed. Just a simple fix to the light issue.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #7   Spotlight this post!  
Unread 20-02-2014, 23:24
kmusa kmusa is offline
Registered User
AKA: Karlis Musa
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: Ithaca, NY
Posts: 117
kmusa is just really nicekmusa is just really nicekmusa is just really nicekmusa is just really nice
Re: Infrared Camera Results

Quote:
Originally Posted by sparkytwd View Post
...The illuminator in is a single 2W 850nm IR Led on a standard star heatsink/pcb...
Don't know if 2W is supply power or emitted power, nor the angle of the emitted beam, but IR light in that wavelength range is potentially hazardous, since the eye generally won't react to it by blinking or closing.

Quote:
Originally Posted by Greg McKaskle View Post
Also, I've taken infrared video of the field using a Kinect. The trusses with about 100 high intensity CANs pointing down at the field make it a bit more interesting. The tape they use to mark lines of the field, any lexan or shiny element of the field that has the right orientation will start reflecting that light back into your camera. This doesn't make it impossible, but it makes both IR and visible light a bit more challenging.
This is so true. We used a Kinect as a IR camera for Rebound Rumble. We were amazed how bright the nets appeared in our image.

-Karlis
__________________
"A society without contrasting ideas will never move forward; however those contrasting ideas must be based on fact, must be rational/logical, and must be presented in a respectful manner." -Arthur Dutra IV

"If the district can spend $1.5M on turf, it should be able to fund a FRC team." -Sophie Halter
  #8   Spotlight this post!  
Unread 20-02-2014, 23:31
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by faust1706 View Post
We are also using ir light (for the third year in a row). We removed the ir filter from our 3 cameras and have added ir leds (40 per camera I believe). A method to implement would be to copy your raw image and threshold both of them different ways: grayscale and hsv, then only keep the overlap. The "equation" is img = gray - hsv, then subtract img from gray again so the lights are removed. Just a simple fix to the light issue.

Not sure what you mean. In this case the HSV image is basically 0,0 in H and S, we only need to threshold the value.
  #9   Spotlight this post!  
Unread 20-02-2014, 23:34
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by kmusa View Post
Don't know if 2W is supply power or emitted power, nor the angle of the emitted beam, but IR light in that wavelength range is potentially hazardous, since the eye generally won't react to it by blinking or closing.
Supplied power.

It's a risk, but even small (32 LED count) ring lights emit more. It also has a 135degree beam, so it's a bit less concentrated.
  #10   Spotlight this post!  
Unread 20-02-2014, 23:43
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Infrared Camera Results

Quote:
Originally Posted by sparkytwd View Post
Not sure what you mean. In this case the HSV image is basically 0,0 in H and S, we only need to threshold the value.
you might as well threshold the other two channels as well since it is already split, it doesn't hurt.

I only use this as a fail safe. Regular thresholding works, and differentiating based off the characteristics off the remaining pixel clusters.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
  #11   Spotlight this post!  
Unread 20-02-2014, 23:51
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by Greg McKaskle View Post
Also, I've taken infrared video of the field using a Kinect. The trusses with about 100 high intensity CANs pointing down at the field make it a bit more interesting. The tape they use to mark lines of the field, any lexan or shiny element of the field that has the right orientation will start reflecting that light back into your camera. This doesn't make it impossible, but it makes both IR and visible light a bit more challenging.
A large part of those problems will depend on the chemistry of the lights involved, halogen, mercury arc, and LED sources emit practically no IR, while incandescent, fluorescent, and xenon can.

To help with that this year we're using specific 850nm filters, which should help keep down the extraneous light.

Quote:
Originally Posted by Greg McKaskle View Post
Since you don't necessarily know what will be at the arena -- you may even have a Mountain Dew vending machine within view of the field -- it isn't a horrible idea to have additional ring lights in your parts alliance. And you can use the calibration time and the dashboard's logged images to look for problems -- no matter the wavelength of the light you are processing.
Greg McKaskle
We've got enough headroom from the power driver (and spare LEDs) for up to 3, as well as polarizing film to further "select" just our own light source.
  #12   Spotlight this post!  
Unread 20-02-2014, 23:58
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by faust1706 View Post
you might as well threshold the other two channels as well since it is already split, it doesn't hurt.

I only use this as a fail safe. Regular thresholding works, and differentiating based off the characteristics off the remaining pixel clusters.
Ideally, from a memory and processing time perspective, in this case you would get the camera to send you a pure grey image.

If you get the camera image in RGB format, you can discard 2 of the channels and just treat that as your grey image. If you get it as a Y??? image, you can just keep the Y channel.

Converting to an HSV image for thresholding is a bit of a waste in this case.
  #13   Spotlight this post!  
Unread 21-02-2014, 06:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Infrared Camera Results

It sounds like you are well prepared. Bringing equipment to adjust to the field was exactly what I was suggesting. The lighting at the events can be any combination of the bulbs you listed, and can also include diffused or direct sunlight. I haven't attended a district event, but have seen huge variability from regional to regional.

The major benefit of the retro-reflective material is that it lets teams provide their own source light. They can use color/frequency, pulses, etc. I haven't tried polarized light with the model of tape that is being used. Does it depolarize or not?

I'd be curious to see images or video from the actual event.

Greg McKaskle
  #14   Spotlight this post!  
Unread 21-02-2014, 12:39
kmusa kmusa is offline
Registered User
AKA: Karlis Musa
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2006
Location: Ithaca, NY
Posts: 117
kmusa is just really nicekmusa is just really nicekmusa is just really nicekmusa is just really nice
Re: Infrared Camera Results

Quote:
Originally Posted by sparkytwd View Post
Supplied power.

It's a risk, but even small (32 LED count) ring lights emit more. It also has a 135degree beam, so it's a bit less concentrated.
With the {visible) light rings, even if there is a significant IR component, your eyes will react by blinking, squinting, or turning away. The issue with IR only sources is this defense mechanism doesn't apply.

In addition, it's really easy to increase "brightness" by adding LEDs. Unfortunately, there isn't a obvious indication that the resulting power output is approaching levels of concern.

-Karlis
__________________
"A society without contrasting ideas will never move forward; however those contrasting ideas must be based on fact, must be rational/logical, and must be presented in a respectful manner." -Arthur Dutra IV

"If the district can spend $1.5M on turf, it should be able to fund a FRC team." -Sophie Halter
  #15   Spotlight this post!  
Unread 21-02-2014, 13:58
sparkytwd's Avatar
sparkytwd sparkytwd is offline
Registered User
FRC #3574
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Seattle
Posts: 96
sparkytwd will become famous soon enough
Re: Infrared Camera Results

Quote:
Originally Posted by Greg McKaskle View Post
The major benefit of the retro-reflective material is that it lets teams provide their own source light. They can use color/frequency, pulses, etc. I haven't tried polarized light with the model of tape that is being used. Does it depolarize or not?

I'd be curious to see images or video from the actual event.

Greg McKaskle
We used polarizers 2 years ago, and testing with them showed polarization was preserved upon reflection (done by rotating the illuminators polarizer 90deg out of phase with the cameras). In practice though you would want to use a single polarizer covering both camera and light.

Our first competition is March 8th, hopefully we'll have some videos from that event. One challenge at this time is the infrared camera itself is a bit useless for the drivers, so we may end up dynamically adjusting the game as the match progresses.
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


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

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