Go to Post Don't you have some rovers to redirect or something Dave? - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 28-01-2014, 16:04
MrRehder MrRehder is offline
Registered User
FRC #1546
 
Join Date: Nov 2012
Location: NY
Posts: 4
MrRehder is an unknown quantity at this point
2014 Vision Processing Example

My team and I used the tutorial provided to implement the vision targeting example code after testing the example code worked with the camera. When using the example code, we got the black and red image showing the targets. When I followed the steps provided to implement the vision targeting, I get a regular image and no distance information.

I attached snapshots of the labview code that I added to the basic dashboard program.
Attached Thumbnails
Click image for larger version

Name:	1.PNG
Views:	72
Size:	29.3 KB
ID:	15995  Click image for larger version

Name:	2.PNG
Views:	102
Size:	31.4 KB
ID:	15996  
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2014, 18:08
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: 2014 Vision Processing Example

A couple things.

The Score and Rank VI has an input for annotating. If not wired, it defaults to False. If you wish to see the rectangles outlining the targets and the scores, wire a True to this input.

Your new code also looks like it default to a teal colored target. I'm not sure if that is calibrated the same as the example. Since you copied in the calibration code, you should be able to draw a line across your lit target to update the search colors. You may also want to widen the Value range.

If you run the dashboard directly, and don't build a dashboard executable, you will be able to debug and determine if you want to change constants, etc. Remember that if you probe a binary image, you will want to right-click and set the Palette to Binary. Otherwise, the 0 and 1 will both look black. Binary has unique colors (black and red) for 0 and 1 pixel values.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2014, 22:08
dibblec's Avatar
dibblec dibblec is offline
Registered User
AKA: Mr. C
FRC #4824 (BerryBotics)
Team Role: Mentor
 
Join Date: Dec 2013
Rookie Year: 2013
Location: Indiana
Posts: 20
dibblec is an unknown quantity at this point
Re: 2014 Vision Processing Example

Here are two images of code that will need to be added. The first image will write data back to the Autonomous.vi and the second is wiring the True to the Score and Rank.vi that Greg pointed out.

Click image for larger version

Name:	Dashboard1.PNG
Views:	46
Size:	2.6 KB
ID:	16087

Click image for larger version

Name:	Dashboard2.PNG.PNG
Views:	42
Size:	2.2 KB
ID:	16088
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


All times are GMT -5. The time now is 20:54.

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