Go to Post "It's not a bug, it's an unlisted feature." - Barry Craig [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 02-23-2016, 02:56 PM
njk345 njk345 is offline
Registered User
AKA: Nick
FRC #5806 (Basement Lions)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Bronx, NY
Posts: 3
njk345 is an unknown quantity at this point
Translating GRIP to NIVision

So I'm rather desperately trying to crank out some vision processing code in Java so that we can test it on the robot quickly before bag and tag tonight. Problem is, we had previously written all the vision code in GRIP before finding out (yesterday) that GRIP's incompatible with USB Cameras. So it seems the easiest thing to do at this point is to translate the code over into java using the built-in NIVision classes from WPILib, but I'm a bit confused as to how some of its methods, etc. work because of the lack of documentation out there.

I was wondering if anyone might be able to point me toward relevant classes from NIVision for each step in the processing we're attempting to do, given the picture of our old GRIP pipeline I attached. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-23-2016, 03:01 PM
njk345 njk345 is offline
Registered User
AKA: Nick
FRC #5806 (Basement Lions)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2014
Location: Bronx, NY
Posts: 3
njk345 is an unknown quantity at this point
Re: Translating GRIP to NIVision

Here's the picture.
Attached Thumbnails
Click image for larger version

Name:	grip.png
Views:	36
Size:	138.3 KB
ID:	20166  
Reply With Quote
  #3   Spotlight this post!  
Unread 02-23-2016, 10:49 PM
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: Translating GRIP to NIVision

GRIP isn't incompatible with USB cameras. You should try running the v1.3-rc1 release, which fixes the problems that people have most commonly had with USB cameras in v1.2.

Also, if you're translating GRIP into code, OpenCV is easier than NI Vision, since most GRIP operations are just wrappers around OpenCV functions. We have a reference table of what operations use what OpenCV functions, with links to to OpenCV documentation.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
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 07:59 AM.

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