Go to Post Is all your information based on hearsay and miscellaneous posts by other people that don't know what they are talking about? - dlavery [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 07-02-2009, 13:17
Chath Maral's Avatar
Chath Maral Chath Maral is offline
User
AKA: Chathus Marlaclusos Majere
FRC #1785 (Robocats)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Missouri
Posts: 49
Chath Maral is an unknown quantity at this point
Exclamation Axis Cam brightness in LabView

Okay, we've been messing with the hue, saturation, and lumination of the colors to get the pink/green combo of the flag registered for awhile now.
So far, we realized that the 0-255 code doesn't work, but we can't locate the Iris control on the camera (different from manually adjusting the focus, which we just found) which will be crucial since the field will be mainly vividly contrasting darks and lights.
__________________
Two things:
Cake==lie;
IF(char pit=="mosh","fun","work");


GO TEAM Robocats!!!
  #2   Spotlight this post!  
Unread 07-02-2009, 15:17
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,752
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: Axis Cam brightness in LabView

I'm not sure what you mean about the 0-255 code doesn't work. Can you be more explicit?

As for iris, the camera has a fixed iris. And yep, the focus is manual.

What problem are you having?

Greg McKaskle
  #3   Spotlight this post!  
Unread 07-02-2009, 15:58
Chath Maral's Avatar
Chath Maral Chath Maral is offline
User
AKA: Chathus Marlaclusos Majere
FRC #1785 (Robocats)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Missouri
Posts: 49
Chath Maral is an unknown quantity at this point
Re: Axis Cam brightness in LabView

Well, the coding for the 'pink' is correct, but it also picks up magenta and mainly anything red that has light shining on it.
The 'green' is also correct, but it is too specific and only show a few particles.
When I attempt to mess with the green, I get no picture at all.
What I mean by no 0-255 is that the Html color code I am trying to use in LabView doesn't seem to have set parameters. It goes into the negatives and beyond 1,200.
In fact, I belive you were the one who's code I used from http://joule.ni.com/nidu/cds/view/p/lang/en/id/1215
__________________
Two things:
Cake==lie;
IF(char pit=="mosh","fun","work");


GO TEAM Robocats!!!

Last edited by Chath Maral : 07-02-2009 at 16:01.
  #4   Spotlight this post!  
Unread 07-02-2009, 19:47
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,752
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: Axis Cam brightness in LabView

The mask for both of the colors is set pretty wide, so as you noticed, bright orange, red, and magenta will get picked up too. That isn't so bad.

You say the green doesn't look so hot. The best way to determine which parameter is off is to open up the subVI called FindTwoColor. On its panel is a button for debugHSL and an image display which you can mouse over to see individual pixels in HSL. This is off by default because it slows stuff down, but for tuning, turn it on and hover over the pink and green areas. Compare that to the HSL numbers on your top panel.

Ideally the H number is somewhere near the center. It probably needs to be around five or ten from the high or low.

The saturation needs to be above the minimum by ten or so, and the luminance above the minimum by ten or so.

If your light is sufficiently different, you may need to bump the numbers a little. You can do it while the VI runs. The other option is to turn on more lights or move to a place with more even lighting.

I would really like to hear which parameter was off and how much you had to change it to work.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Axis Camera w/ Labview problem lamoreaux2198 Technical Discussion 2 14-01-2009 04:38
Axis Camera Programming in Labview Striker_27 NI LabVIEW 10 09-01-2009 19:19
Getting Live Axis cam feed popo308 Programming 7 09-01-2009 19:14
Axis cam problem keehun Programming 8 07-01-2009 11:32
Anyone know how to get a live video feed from your axis cam? Jazonk FRC Control System 7 03-01-2009 20:08


All times are GMT -5. The time now is 05:56.

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