Go to Post quick everyone find everything in the whole world that sells for $125 so we can get an edge on our building 2 days before kick off.....ready...go! - Greg Needel [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 11-02-2012, 15:54
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Saving Image onto cRIO

In my code i have
Code:
ColorImage image = camera.getImage();
BinaryImage threshImage = image.threshold(....);
threshImage.write("test.jpg");
but when I ftp into my cRIO, i can't find the image. I don't get any exceptions when it writes the binary image onto the cRIO so it should have been successful. I checked in the root directory of the cRIO but i can't find the image. Anybody have any ideas as to what is going on?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 17:51
kingofirony kingofirony is offline
Registered User
FRC #0694
 
Join Date: May 2011
Location: New York City
Posts: 6
kingofirony is an unknown quantity at this point
Re: Saving Image onto cRIO

This is all from memory but it writes to system/ni-rt or is in one of those directories. Also you're going to want to write a png file rather than a jpeg otherwise your binary file will just be a blank, black image.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2012, 11:51
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,073
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Saving Image onto cRIO

As I recall, It writes straight to the root. Make sure you are FTPing in properly.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2012, 12:49
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Re: Saving Image onto cRIO

I type ftp://10.28.69.2 into my browser. I think I'm ftping it correctly, i just can't find the image that was supposed to be saved onto the cRIO. Do I need to turn my cRIO off and then back on before I can find the image maybe?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2012, 21:50
loafdog loafdog is offline
Registered User
AKA: Maciej
FRC #2876 (DevilBotz)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Burlington, MA
Posts: 33
loafdog is an unknown quantity at this point
Re: Saving Image onto cRIO

See this thread http://www.chiefdelphi.com/forums/sh...d.php?t=101778
Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2012, 22:05
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Saving Image onto cRIO

Nothing but "/tmp/particles.png" works for me.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-02-2012, 19:38
2869Robotics 2869Robotics is offline
Registered User
FRC #2869
 
Join Date: Jan 2012
Location: Bethpage
Posts: 18
2869Robotics is an unknown quantity at this point
Re: Saving Image onto cRIO

I get this error when I try to write the image to the cRIO. Anyone know how to fix this?

Code:
edu.wpi.first.wpilibj.image.NIVisionException: No error.
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.assertCleanStatus(edu.wpi.first.wpilibj.image.NIVisionException: No error.
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.assertCleanStatus(NIVision.java:959)
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.writeFile(NIVision.java:1043)
[cRIO]     at edu.wpi.first.wpilibj.image.Image.wNIVision.java:959)
[cRIO]     at edu.wpi.first.wpilibj.image.NIVision.writeFile(NIVision.java:1043)
[cRIO]     at edu.wpi.first.wpilibj.image.Image.write(Image.java:51)
[cRIO]     at edu.wpi.first.wpilibj.templates.RobotTemplate.operatorControl(RobotTemplate.java:277)
[cRIO]     at edu.wpi.first.wpilibj.Sirite(Image.java:51)
[cRIO]     at edu.wpi.first.wpilibj.templates.RobotTemplate.operatorControl(RobotTemplate.java:277)
[cRIO]     at edu.wpi.first.wpilibj.SimpleRobot.startCompetition(SimpleRobot.java:118)
[cRIO]     at edu.wpi.first.wpilibj.RobotBase.startApp(RobotBase.java:156)
[cRIO]     impleRobot.startCompetition(SimpleRobot.java:118)
[cRIO]     at edu.wpi.first.wpilibj.RobotBase.startApp(RobotBase.java:156)
[cRIO]     in virtual method #10 of javax.microedition.midlet.MIDlet(bci=17)
[cRIO]     at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(64)
[cRIO]     at com.sun.squawk.imp.MIDletMainWrapper.mn virtual method #10 of javax.microedition.midlet.MIDlet(bci=17)
[cRIO]     at javax.microedition.midlet.MIDletTunnelImpl.callStartApp(64)
[cRIO]     at com.sun.squawk.imp.MIDletMainWrapper.main(110)
[cRIO]     in virtual method #95 of com.sun.squawk.Klass(bci=25)
[cRIO]     at com.sun.squawk.Isolate.run(1506)
[cRIO]     at java.lang.Thread.ain(110)
[cRIO]     in virtual method #95 of com.sun.squawk.Klass(bci=25)
[cRIO]     at com.sun.squawk.Isolate.run(1506)
[cRIO]     at java.lang.Thread.run(231)
[cRIO]     in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[cRIO]     in static method #3run(231)
[cRIO]     in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[cRIO]     in static method #3 of com.sun.squawk.VM(bci=6)
[cRIO]  of com.sun.squawk.VM(bci=6)
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 11:40.

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