Go to Post You know, if I was John V-Neun I would get a copyright on my name! - Jay H 237 [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 22-01-2012, 17:28
FRC997Madison's Avatar
FRC997Madison FRC997Madison is offline
Programmer, Team 997 CHS Robotics
AKA: Madison
FRC #0997 (Spartan Robotics)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Albany, Oregon
Posts: 3
FRC997Madison is an unknown quantity at this point
Exclamation OpenCV for Java/Windows

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?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2012, 21:14
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: OpenCV for Java/Windows

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
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2012, 21:44
Sunstroke Sunstroke is offline
Programmer
AKA: Joe Grinstead
FRC #3504 (Girls of Steel)
Team Role: Mentor
 
Join Date: Apr 2009
Rookie Year: 2009
Location: New England
Posts: 49
Sunstroke is an unknown quantity at this point
Re: OpenCV for Java/Windows

Quote:
Originally Posted by FRC997Madison View Post
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2012, 19:30
FRC997Madison's Avatar
FRC997Madison FRC997Madison is offline
Programmer, Team 997 CHS Robotics
AKA: Madison
FRC #0997 (Spartan Robotics)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Albany, Oregon
Posts: 3
FRC997Madison is an unknown quantity at this point
Re: OpenCV for Java/Windows

Quote:
Originally Posted by Sunstroke View Post
Install the SmartDashboard, all the vision stuff is packed into the installer.
Thanks for your help - however, we had the smartdashboard installed already.
__________________
Just remember - people always blame the programmers. Our job is to prove them wrong.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2012, 22:39
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
Re: OpenCV for Java/Windows

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.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2012, 22:48
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: OpenCV for Java/Windows

Quote:
Originally Posted by ksanger View Post
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:
Attached Thumbnails
Click image for larger version

Name:	libraries.png
Views:	116
Size:	18.5 KB
ID:	11643  
Reply With Quote
  #7   Spotlight this post!  
Unread 30-01-2012, 23:06
ksanger's Avatar
ksanger ksanger is offline
Registered User
FRC #0211 (MaK)
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Rochester NY
Posts: 62
ksanger is on a distinguished road
Re: OpenCV for Java/Windows

Awesome thank you. Along with this example http://pastebin.com/cYtQiKpF I think we'll make some progress now.

Thanks again.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2012, 17:57
FRC997Madison's Avatar
FRC997Madison FRC997Madison is offline
Programmer, Team 997 CHS Robotics
AKA: Madison
FRC #0997 (Spartan Robotics)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Albany, Oregon
Posts: 3
FRC997Madison is an unknown quantity at this point
Re: OpenCV for Java/Windows

Thanks everyone for your help, this looks like just what we need. I really appreciate it!
__________________
Just remember - people always blame the programmers. Our job is to prove them wrong.
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 07:24.

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