Go to Post There's nothing that you can do to please everyone. You have to figure out where you stand and hold your ground. - sciguy125 [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 05-02-2015, 13:37
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Java NIVision imaqSavePattern error

Hey all,

I've been trying to use the NIVision library for vision processing on our robot however I constantly get undefined symbol errors when I try to call certain methods. The major one in question is NIVision.imaqSavePattern. Does anyone know why this happens? I read something about bad java wrappers but could it wasn't very clear.

Thanks for any help,

Evan
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2015, 15:23
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 89
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: Java NIVision imaqSavePattern error

Posting your code (or a sample that produces the error) will help people help you.
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2015, 15:48
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Re: Java NIVision imaqSavePattern error

At the moment, I do not have access to the code but in its current form it is built off of the Intermediate Vision sample class with just the added line

Code:
    NIVision.imaqSavePattern(frame, "image.jpg");
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2015, 23:38
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Java NIVision imaqSavePattern error

I think your code is supposed to be
Code:
NIVision.imaqWriteJPEGFile(image, fileName, quality, colorTable);
for saving an image
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2015, 00:34
mmaunu's Avatar
mmaunu mmaunu is offline
Registered User
FRC #2485 (W.A.R. Lords)
Team Role: Mentor
 
Join Date: Mar 2013
Rookie Year: 2010
Location: San Diego, CA
Posts: 89
mmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the roughmmaunu is a jewel in the rough
Re: Java NIVision imaqSavePattern error

Have you seen this post?
http://www.chiefdelphi.com/forums/sh...d.php?t=132494

It seems that they did update the NIVision wrappers and this was done to address some of the same issues that you are facing. However, if you have the latest version of the Java API from WPI, you should have the updates that they reference. You can check to see if your libraries are up to date by looking at this page and then checking the version numbers on your Eclipse plugins.
http://wpilib.screenstepslive.com/s/...ware-revisions

Here is a link to the NIVision API (which looks like it should be up to date):
http://first.wpi.edu/FRC/roborio/rel...1NIVision.html

It does not list the method that you are trying to call but it does list the method that Fauge7 referenced...
__________________
2014 Las Vegas (Winners with 987, 2478; Excellence in Engineering)
2014 San Diego (Finalists with 987, 3250; Quality Award)
2013 Inland Empire (Winners with 1538, 968; Excellence in Engineering Award)
2013 San Diego (Finalists with 2984, 4322; Creativity Award)
2012 Las Vegas (Finalists with 2034, 3187; Quality Award)
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 22:27.

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