Go to Post To have respect for the process you are in right now, respect the knowledge around you by using it to your full advantage. - Scott Ritchie [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 24-01-2017, 09:46
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 125
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Rectangle Comparison.vi Edits?

Hello from 3007!
I am looking at the vision example code, and it says to edit Rectangle Comparison (inside Cull and Group) and Distance VIs to locate vertical stripes, such as those next to the peg.
I got my head wrapped around enough of how the Calculate Distance VI works to edit it for vertical stripes, but I'm still baffled by how the particle scoring works.

It would be absolutely fantastic if someone could tell me exactly what edits to make to Rectangle Comparison.vi so that it properly scores vertical stripes, but any help would still be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2017, 09:25
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 125
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Rectangle Comparison.vi Edits?

This is what the default scoring code looks like to me.
Attached Thumbnails
Click image for larger version

Name:	RectangleComparisonVIDefault.PNG
Views:	23
Size:	39.2 KB
ID:	21613  
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2017, 14:41
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 125
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Rectangle Comparison.vi Edits?

I have made some edits myself and gotten a sample target drawn digitally to score near 100, and I have also made edits for distance to work using the edge detection algorithm. I didn't update comments.
Attached Thumbnails
Click image for larger version

Name:	RectCompVIEdited.PNG
Views:	12
Size:	38.4 KB
ID:	21615  
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2017, 19:22
flemdogmillion's Avatar
flemdogmillion flemdogmillion is online now
Programmer, Builder, Driver...
FRC #3007
 
Join Date: Nov 2016
Rookie Year: 2015
Location: Minnesota
Posts: 125
flemdogmillion will become famous soon enoughflemdogmillion will become famous soon enough
Re: Rectangle Comparison.vi Edits?

Even better.
Attached Thumbnails
Click image for larger version

Name:	RectCompVI2_0.PNG
Views:	21
Size:	36.1 KB
ID:	21617  
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2017, 09:13
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 130
aeastet is an unknown quantity at this point
Re: Rectangle Comparison.vi Edits?

Hey I just wanted to say thank you for posting what you have learned. I am sure that it will help others that do not have a programming mentor or experience with programming at all.

Tim
__________________
Team 6043 Allegan Tigers
LabVIEW Developer for Kauai Labs (navX and SF2 Libraries)
http://www.kauailabs.com/
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 10:52.

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