Go to Post Mike Wade was the Fall offseason guy. - Michael Leicht [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 05-02-2011, 13:42
Censen.Morris Censen.Morris is offline
Registered User
AKA: Michael
FRC #2403 (Team Plasma)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mesa, AZ
Posts: 4
Censen.Morris is an unknown quantity at this point
Re: Sending Processed Image Stream to Dashboard?

Thanks for the quick reply.

We are trying to put the code in the vision assistant created VI into the Vision Processing VI. We were only trying to view the processed image on the dashboard to help us trouble shoot our vision tracking system which would return the distance the robot was from the scoring peg. So let me explain our code:

First we modeled our design off of the “Vision Target Tutorial.” We set up the NI Vision Assistant to use the Brightness function to filter the image to essentially black and white. From there we used the “Shape Detection” function to search the image for ellipses (we didn’t go with rectangles just because the poor image quality did not define the pieces of tape well enough to be identified as rectangles). This returned the Center X’s and minor radii of each tape piece which gave us enough information to develop the algorithms for calculating the distance.

Okay here were the problems we ran into:
First, in the vision assistant part, we could not use the RGB-32 bit images the webcam was outputting, since the “Shape Detection” function said that it could only use binary, or 8-bit images. We got it work by using Photoshop to save an image into a grayscale 8 bit bitmap (we tried saving it as an 8-bit color bitmap but vision assistant kept reading it as a 32-bit image). But we were not sure how to convert the images into the right type within LabView.

Second, we were not quite sure how to integrate the vision assistant VI into the Vision Processing VI or whether that was the right place for it. I attached a screenshot of what we did. More specifically we were not sure how to unbundle the wire from the Vision Assistant VI. We used a 1-D split array VI then an array to cluster, then unbundle cluster functions to separate the individual data. I wasn’t sure whether we needed the 1-D split array and how the number of matches wire from the Vision assistant VI fit into it, and how to know what data is for what detected shape. From there we ran the minor radii data and the center x data into a vi that we created that calculated the distances, and originally ran that into the necessary functions described in the Custom dashboard tutorial, and put a field on the dashboard, but when we ran it only a “int” was being displayed. Then to trouble shoot we wired the minor radius value from the cluster unbundle to the dashboard, but it now just displayed a 0 (this setup is what is shown in the screenshot).

So thank you for replying to our previous posts and see if you can provide any input on these issues.

heres the screenshot if it didn't attach http://www.rmhsrobotics.com/overview.jpg


Thanks.

Last edited by Censen.Morris : 05-02-2011 at 13:46. Reason: adding a link to the image that was supposed to be attached
 


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 23:44.

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