|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: How far have you gotten on coding the camera tracking? | |||
| Completed |
|
25 | 22.73% |
| Debugging |
|
29 | 26.36% |
| Work in progress |
|
31 | 28.18% |
| Just started |
|
10 | 9.09% |
| Havent started |
|
10 | 9.09% |
| Not going to use the camera for that |
|
5 | 4.55% |
| Voters: 110. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Quote:
The green color of that fabric is indeed less predictable than the pink, which is why the pink is the primary color by default. For debugging, you may find it useful to switch the first color to green to see the entire green mask. Then tilt the target towards and away of the camera to see if the issue is with the green getting to bright, too dark, or something else. Usually it is either a bright streak or a dark streak. Once you know how to make it fail, and while it is still running, open up the Find VI, click on the HSL debug switch, and now you can hover the mouse over the green portion of the image to see what the pixel values are in HSL. This will give you an idea of how the different orientations differ, and how much you'll need to lower the saturation or brightness on green to get it covered. You may also decide that you don't want to change it if it is due to tilt which you don't expect in a game. The debug HSL button is not something I'd leave on for real usage, by the way. It works identically, but slower because of the display, and because of the explicit HSL conversion of every pixel. For normal operation turn the switch off, the threshold will still be done in HSL, but only enough math to perform the threshold. Greg McKaskle |
|
#2
|
||||
|
||||
|
Re: How far have you gotten on coding the camera tracking?
We've gotten the Camera tracking a pink and green target, identifying which team it is, where it is and how far away it is, and it's all in a modular code block. We modified the Single Color Tracking Example and then added servos and position data.
|
|
#3
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
What does HSL stand for?
|
|
#4
|
||||
|
||||
|
Re: How far have you gotten on coding the camera tracking?
Hue/Saturation/Luminosity. It is just another way to represent colors than RGB.
|
|
#5
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
I, as the most active of one of three programmers on my team, have made no progress at all. Especially since this is my first time ever using labview, so I'm entirely self taught.
Any help would be greatly, hugely appreciated. |
|
#6
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Quote:
If you're having trouble making it track with the standard gimbal and two color tracking demo, try finding somewhere there is more light - opening the windows where we are made a huge difference. It also took a lot of tweaking of hsl values. btw see you at the regional -jonathan |
|
#7
|
|||||
|
|||||
|
Re: How far have you gotten on coding the camera tracking?
We're still having fun trying to get the response time to be faster, but I believe we've reached the highest efficiency we can get before ship. I tracks like no tomorrow, but when the target is moving we're having trouble leading it... We messed around adding in a PID lead/lag loop, but we're only having moderate to no success with that. Has anyone else gotten it to successfully lead a moving target? Any thoughts on that?
By the way, I'm very impressed with the support the community has on the camera this year! Here's a shout out to all the incredibly helpful NI folks that have provided time and resources to ensuring this season's success with the new system! |
|
#8
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Quote:
And yes, see you there. ![]() |
|
#9
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Quote:
Did you put the jumpers next to the servo pwms? Are the pwms in the program the correct ones/where the servos are plugged in? -jonathan |
|
#10
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
If you aren't having any luck with the colors, you might try the NI Vision assistant. It is an easy way to bring in an image and check out the pixels in HSL. Ideally, you get in the habit of grabbing a couple photos in different orientations, different amounts of light, etc. Then you get a better feel for the range of HSL values needed to cover the different lighting.
Greg McKaskle |
|
#11
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Yes, I know that the pwm's are correct because we have code to be able to control them with a joystick on the same pwm channels. I'm checking it out now and seeing if we can get it to work, but a lot of our focus is on the encoders at this point in time.
|
|
#12
|
||||
|
||||
|
Re: How far have you gotten on coding the camera tracking?
We have our camera tracking ok. It commands a motor to turn a turret to keep the image in the center of its field of view. The problem we are having is the camera/turret is constantly oscillating back and forth trying to find the center. Any ideas of how to put in a PID loop into Labveiw? I am not up on the programming, just trying to help our programmer out.
|
|
#13
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
Quote:
|
|
#14
|
||||
|
||||
|
Re: How far have you gotten on coding the camera tracking?
We ran into some pretty massive problems. No matter what we seemed to do, the camera would intermittently find a color (or two) for a few seconds, then x and y would immediately go to maximum. We assumed it was centering on the fluorescent lights in the room, but we're not entirely sure. And it was doing this both with our code and the TwoColorTrackingDemo code. I don't think the camera was at fault, as images grabbed from it looked just fine. We tried manually defining the color fields a couple times but that didn't help. Mind you we're using C/Windriver.
|
|
#15
|
|||
|
|||
|
Re: How far have you gotten on coding the camera tracking?
We've spent a long time on our camera tracking code, and it finally works very well! (The night before our regional, too. Phew!) Our robot has a shooter, and we're using the camera to aim it at targets and then calculate how far it should fire. I'm pretty sure we'll post all our code on CD at the end of competition season, in case anybody's interested. We also have a pretty cool dashboard
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how far have you gotten on your robot? | gondorf | General Forum | 167 | 26-01-2010 07:35 |
| How far have you gotten in "100 Bottles of Milk on the Wall"... | Billfred | Chit-Chat | 25 | 29-03-2009 18:01 |
| How far has your team gotten? | Alex Burman | Chairman's Award | 5 | 21-01-2006 15:43 |
| Have you gotten your robot to go towards the vision tetra? | Bharat Nain | Programming | 20 | 25-02-2005 20:18 |
| So how much have you all accomplished so far? | team222badbrad | General Forum | 16 | 16-01-2002 18:09 |