View Full Version : OpenCV for Java/Windows
FRC997Madison
22-01-2012, 17:28
How do you set up WPIJavaCV for java on windows? We've tried OpenCV and JavaCV, but we couldn't figure it out. We need to use it for vision tracking on the 'backboards' for this year's game. Suggestions?
Are you doing an onboard computer?
If you are, it's recommended to not just JavaCV and not windows (imo building anything in windows is a pain). JavaCV, although great, is not an officially supported language binding.
Windows is just generally difficult when it comes to programming anything that requires building
Sunstroke
22-01-2012, 21:44
How do you set up WPIJavaCV for java on windows? We've tried OpenCV and JavaCV, but we couldn't figure it out. We need to use it for vision tracking on the 'backboards' for this year's game. Suggestions?
Install the SmartDashboard, all the vision stuff is packed into the installer.
FRC997Madison
23-01-2012, 19:30
Install the SmartDashboard, all the vision stuff is packed into the installer.
Thanks for your help - however, we had the smartdashboard installed already. :(
I've installed the SmartDashboard installer too, now what must we do? Pointing to the jar files WPIJavaCV.jar or WPICameraExtension does not help. The SmartDashboard is loaded into C:\Program Files\SmartDashboard. Under there there are .jar files, but I don't know if they are executables for running under windows or to be included and linked to the java program we are trying to write?
My program doesn't understand WPICameraExtension, WPIImage, or WPIColorImage, nor the processImage function.
Has anyone written a standalone Java app that reads the camera image they may share as an example? The WPILibCookbook is missing some key information that we have no clue in what to do.
basicxman
30-01-2012, 22:48
I've installed the SmartDashboard installer too, now what must we do? Pointing to the jar files WPIJavaCV.jar or WPICameraExtension does not help. The SmartDashboard is loaded into C:\Program Files\SmartDashboard. Under there there are .jar files, but I don't know if they are executables for running under windows or to be included and linked to the java program we are trying to write?
Here's what I include:
Awesome thank you. Along with this example http://pastebin.com/cYtQiKpF I think we'll make some progress now.
Thanks again.
FRC997Madison
02-02-2012, 17:57
Thanks everyone for your help, this looks like just what we need. I really appreciate it!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.