View Single Post
  #19   Spotlight this post!  
Unread 31-01-2015, 15:57
DaPasta DaPasta is offline
Registered User
FRC #1515
 
Join Date: Jan 2015
Location: United States
Posts: 2
DaPasta will become famous soon enough
Re: OpenCV for RoboRio - Release

Greetings!

I attempted to get OpenCV working with Java. However, once I pushed the Java code to the roboRio, I get the following error on the driver station:
Code:
ERROR Unhandled exception: java.lang.UnsatisfiedLinkError: no opencv_java2410 in java.library.path at [java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857), java.lang.Runtime.loadLibrary0(Runtime.java:870), java.lang.System.loadLibrary(System.java:1119), org.team1515.pastabot.Robot.robotInit(Robot.java:41), edu.wpi.first.wpilibj.IterativeRobot.startCompetition(IterativeRobot.java:76), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:234)]
I also added the following line in the roboInit method per instructions based on a previous post:
Code:
System.load("/usr/local/lib/lib_OpenCV/java/opencv_java2410.so");
I double checked multiple times that this path was correct.