|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Successful Computer Vision
So we just received out new axis camera and led rings today and I am extremely impressed. With only a 60mm led ring, we were able to illuminate the retro-reflective tape from half-way across the shop. At this point, I am very confident that our robot will have some sort of computer vision this season.
Here is our current algorithm: We are using the NI vision assistant to create a VI for us, so here are the filters applied in the Vision Assistant. 1. Original Image (Acquired from the axis camera) 2. Color Threshold using HSL values acquired from sampling using histogram tool. This creates a rough outline of the square with some noise. 3. Adv. Morphology - Convex Hull: Fills in the rectangle 4. Particle Filter - Area: Removes any small noise leaving 4 rectangles 5. Particle Analysis: outputs any information that you want to know about the rectangle(s) |
|
#2
|
||||
|
||||
|
Re: Successful Computer Vision
Quote:
I will post mine for detecting the basketballs here later when I can ![]() |
|
#3
|
|||
|
|||
|
Re: Successful Computer Vision
Quote:
|
|
#4
|
||||
|
||||
|
Re: Successful Computer Vision
Quote:
This year I believe both depth and rgb can play together well. Do a red or blue filter based on team color. Then intersect with the depth image. I believe you will be able to see the red and blue squares very well using this strategy. |
|
#5
|
||||
|
||||
|
Re: Successful Computer Vision
I am expecting a significant difference in the lighting between our shop (fluorescent lights) and the can lights in the arena. I am expecting that we will use some of the field time to adjust our settings. I expect that we will have to adjust the white-balance down and that we will have to tweak our HSL values for the filter
|
|
#6
|
||||
|
||||
|
Re: Successful Computer Vision
Vision systems always have issues with lighting. My co-workers still struggle with things like:
* Power fluctuations causing light intensity modulation. * Skylights in factories that let in light at the wrong angle for 1 hour a day. * Random people using flashlights/lasers/camera flashes at the wrong time. You will have to have controls right on your dashboard to manipulate various settings. It shouldn't be difficult, but it will take some time. If you can get some practice rounds in, before/during the competitions on the actual field, this is ideal. You will also require a method of switching between settings. (Eg. An enum: [arena|practice|shop|other random place|...]) The more practice you have setting up the controls for your vision system, the faster you will be able to get it right. With enough practice, you may even come up with a algorithm that does the same thing in varying light conditions. Good luck! I look forward to any examples that you guys post. |
|
#7
|
|||
|
|||
|
Re: Successful Computer Vision
The latter portion of the white paper discusses setting up the camera so that you are processing good images. Experiment with the WB and exposure and brightness to find a setting that is consistent between your shop and outdoors.
According to wikipedia, an overcast day is 1000 lux, and I believe the lighting for the FIRST field is about somewhere between 85 and 95 foot candles. These are comparable levels of light. It is also typical for the FIRST field having the lights aiming into the field from each long edge. They do not shine directly into the eyes of the drivers at the joysticks. So the illumination drops off rapidly there. If you have questions about what a camera setting does, you can look into the WPILib documentation, the Axis documentation, or perhaps ask here. Greg McKaskle |
|
#9
|
||||
|
||||
|
Re: Successful Computer Vision
We are attempting to solve the problem by looking at the black rectangle rather than the reflective one. We have pretty good results in most lighting conditions.
|
|
#10
|
|||
|
|||
|
Re: Successful Computer Vision
You should have a piece of the tape in the kit of parts. If you decide to purchase more, I'm almost certain that is the right product.
Greg Mckaskle |
|
#11
|
||||
|
||||
|
Re: Successful Computer Vision
What are the LED rings you speak of? Were they in the kit of parts? If not, do you mind sharing the part number?
TIA |
|
#12
|
||||
|
||||
|
Re: Successful Computer Vision
Go to superbrightleds and look up 60 mm "Angel Eyes".
|
|
#13
|
||||
|
||||
|
Re: Successful Computer Vision
What is the legality of using superbright leds? I can't find anything in the manual. When do the leds become a nuisance to the game and called out by the referees?
|
|
#14
|
|||
|
|||
|
Re: Successful Computer Vision
Has anyone seen a difference as to tracking the reflective tape vs. the black rectangle? Does anyone think one will be better than the other? Will the stadium lighting effect tracking the black rectangle?
|
|
#15
|
|||
|
|||
|
Re: Successful Computer Vision
That came up between a few of our team members when we were discussing which of the two tapes to track. We are unsure as of yet :/
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|