Go to Post FIRST competitions are a microcosm of real world engineering projects. - KenWittlief [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 31-01-2013, 03:02
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
2013 Vision Sample Code Images

I'm trying to figure out the vision code. This will be our first year using it. I have the 2013 Vision Sample code from the Netbeans plugins. I've taken a few photos with the camera and created what seems to be a good vision scripting using NI Vision Assistant.

I've edited the sample code with only the HSV values from my vision script. The comments in the sample code say that there should be a image from the crio flash called testImage.jpg. But when I deployed and ran the code there was a file I/O error pointing to the line where it defines "image = new RGBImage("/testImage.jpg");

This made me think it couldn't find such file so I tried to FTP into the crio and i don't see it anywhere. Anybody have any insight on this?

I'd also like to put my test images on the crio to verify the code will yield the same results as the Vision Assistant but I don't know where / what path to upload these image files to on the crio.

any insight on this?
__________________
Wendy
Team 3502
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2013, 07:06
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: 2013 Vision Sample Code Images

You FTP the image you want to test to the cRIO root and call it testImage.jpg, then the code will load and process it.
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2013, 10:47
twiggzee twiggzee is offline
Registered User
FRC #3502 (Octo-(PI)-Rates)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2011
Location: Tallahassee, FL
Posts: 55
twiggzee is an unknown quantity at this point
Re: 2013 Vision Sample Code Images

Quote:
Originally Posted by RufflesRidge View Post
You FTP the image you want to test to the cRIO root and call it testImage.jpg, then the code will load and process it.
ok, second question where on the crio do i upload it to. as in what file path. if it's just "/testImage.jpg" does that just mean the top folder?

thanks!
__________________
Wendy
Team 3502
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2013, 11:45
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: 2013 Vision Sample Code Images

Quote:
Originally Posted by twiggzee View Post
ok, second question where on the crio do i upload it to. as in what file path. if it's just "/testImage.jpg" does that just mean the top folder?
yes
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:03.

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