Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Infrared Camera Results (http://www.chiefdelphi.com/forums/showthread.php?t=126936)

sparkytwd 20-02-2014 15:45

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

billbo911 20-02-2014 15:54

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.

sparkytwd 20-02-2014 16:26

Re: Infrared Camera Results
 
Quote:

Originally Posted by billbo911 (Post 1347044)
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.

billbo911 20-02-2014 16:37

Re: Infrared Camera Results
 
Quote:

Originally Posted by sparkytwd (Post 1347060)
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.

Greg McKaskle 20-02-2014 21:52

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

faust1706 20-02-2014 23:21

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.

kmusa 20-02-2014 23:24

Re: Infrared Camera Results
 
Quote:

Originally Posted by sparkytwd (Post 1347036)
...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 (Post 1347267)
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

sparkytwd 20-02-2014 23:31

Re: Infrared Camera Results
 
Quote:

Originally Posted by faust1706 (Post 1347326)
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.

sparkytwd 20-02-2014 23:34

Re: Infrared Camera Results
 
Quote:

Originally Posted by kmusa (Post 1347329)
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.

faust1706 20-02-2014 23:43

Re: Infrared Camera Results
 
Quote:

Originally Posted by sparkytwd (Post 1347332)
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.

sparkytwd 20-02-2014 23:51

Re: Infrared Camera Results
 
Quote:

Originally Posted by Greg McKaskle (Post 1347267)
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 (Post 1347267)
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.

sparkytwd 20-02-2014 23:58

Re: Infrared Camera Results
 
Quote:

Originally Posted by faust1706 (Post 1347341)
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.

Greg McKaskle 21-02-2014 06:59

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

kmusa 21-02-2014 12:39

Re: Infrared Camera Results
 
Quote:

Originally Posted by sparkytwd (Post 1347335)
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

sparkytwd 21-02-2014 13:58

Re: Infrared Camera Results
 
Quote:

Originally Posted by Greg McKaskle (Post 1347380)
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.


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

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