Go to Post We're not behind, the rest of the world is ahead! Yeah. Thats it. - Curtis Williams [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2009, 17:44
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
Camera

I cant seem to get the Camera working properly. As of right now I have the camera set up as follows.

user: root
pass: admin

Exposure Auto
Fluorescent 1
Brightness: 40

Im using the TwoColorDemo code just for testing purposes and I cant get it to pickup on the green flag.

As always any suggestions would be fantastic!
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2009, 18:56
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: Camera

Hopefully you have Vision Assistant installed. In the Start menu>>National Instruments>>Vision launch it.

Use it to grab an image, or you can even use the http tool to grab an image of the target when it is failing to ID the target. Then Open the image into vision assistant.

In the assistant, double click on the line profile tool. Set the RGB ring near the graph to HSL, and draw a line across the target (both colors).

This will give you the HSL numbers and you can determine why the green thresholds are excluding the target under those conditions.

Post the image if you have troubles analyzing it.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2009, 19:01
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
Re: Camera

I actually did use vision assistant and I just entered in the default settings.

It picks up on the green perfect when I pull it into vision assistant so I think its either in the code or its getting caught up in the crio and the camera isnt working properly?

On another note I am using 160x120

I also tried 0 to 255 ranges and still got nothing.

Any Suggestions?

Last edited by dboisvert : 18-02-2009 at 21:36.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2009, 22:07
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: Camera

If it isn't the color of the fabric, make sure it isn't because of the orientation. Flip the target or check the code to make sure the target color is described correctly.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2009, 18:05
dboisvert dboisvert is offline
Registered User
AKA: Dan Boisvert
FRC #2405 (Divided by Zero)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Michigan
Posts: 57
dboisvert is an unknown quantity at this point
Re: Camera

What do you mean by flip the target? As I have said its the default TwoColorTrackDemo that everyone else has been using and getting to work.

I defined the color right because it highlights the flag perfectly in NI Vision Assistant
Reply With Quote
  #6   Spotlight this post!  
Unread 20-02-2009, 07:58
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: Camera

What I mean is that the two color code looks for either pink over green or green over pink. It will not consider single patches of color or the wrong orientation to be a target.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 21-02-2009, 16:07
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Camera

i would either use a PCVideoServer just declare it and open up labview dashboard, or connect directly to the camera, then copy the picture to the GIMP, and crop to the Green/Pink, then go to Colors, info, histogram, and change between red, G, and b, and see the average colors, thats how we are tuning the colors
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
Reply


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
Camera RMS11 Electrical 9 12-12-2008 13:30
Tell the difference: 2007 CMU Camera, 2006, 2005 camera? Chris_Elston Programming 2 07-01-2008 13:11
CAMERA Slick Programming 30 10-02-2007 13:30
Camera The yellowdart General Forum 4 21-01-2007 22:56
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56


All times are GMT -5. The time now is 03:38.

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