Go to Post Too many people have worked too long and too hard to have the selfish actions of one person derail our teams reputation because they want to vent online. - Koko Ed [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 12-14-2015, 09:13 PM
akablack akablack is offline
Registered User
no team
 
Join Date: Dec 2015
Location: New York
Posts: 5
akablack is an unknown quantity at this point
Daisy Vision w/ Java. Error compiling

I'm not sure how many teams still utilize Team 341's vision code with javacv and opencv, but any help on this will be appreciated!

I've got the javacv bin files in the project in eclipse, as well as the opencv bin folder in the PATH system variable. Eclipse sees no issues when compiling.

However, when running Run -> Run As -> WPILib Java Deploy, I get the following errors:

Quote:
[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\Dais yCVWidget.java:3: error: package com.googlecode.javacv does not exist
[javac] import com.googlecode.javacv.CanvasFrame;
[javac] ^
[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\Dais yCVWidget.java:4: error: package com.googlecode.javacv.cpp does not exist
[javac] import com.googlecode.javacv.cpp.opencv_core;
[javac] ^
[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\Dais yCVWidget.java:5: error: package com.googlecode.javacv.cpp.opencv_core does not exist
[javac] import com.googlecode.javacv.cpp.opencv_core.*;
[javac] ^
[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\Dais yCVWidget.java:6: error: package com.googlecode.javacv.cpp does not exist
[javac] import com.googlecode.javacv.cpp.opencv_imgproc;
[javac] ^
[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\Dais yCVWidget.java:7: error: package com.googlecode.javacv.cpp.opencv_imgproc does not exist
[javac] import com.googlecode.javacv.cpp.opencv_imgproc.*;

It appears that none of the packages are accessible, even though I already imported them into the project.

Any help would be appreciated. Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 12-17-2015, 10:35 AM
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,069
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Daisy Vision w/ Java. Error compiling

The DaisyCV project is a standard Java application that runs on your laptop, so you should be able to run it by going to Run -> Run (rather than Run As -> WPIlib Java Deploy) assuming everything is set up correctly.

I'm glad people are still using this four years later! For context, DaisyCV was a vision application developed by Team 341 in 2012 for the game Aim High. It processes camera frames on the driver's station, and sends key metrics (like the angle towards a vision target) back to the robot. It should still be workable, though the NetworkTables and SmartDashboard libraries do get updated from time to time and I would not be surprised if some tweaking was necessary.

Also, you should be aware that there are more options for vision processing available today than there were in 2012 when this was written. In particular, Roborealm is much more comprehensive and better supported than DaisyCV.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-21-2015, 07:44 PM
akablack akablack is offline
Registered User
no team
 
Join Date: Dec 2015
Location: New York
Posts: 5
akablack is an unknown quantity at this point
Re: Daisy Vision w/ Java. Error compiling

Thanks for the reply! I will try to get this working, and thanks for your advice!
Reply With Quote
  #4   Spotlight this post!  
Unread 01-13-2016, 05:03 PM
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: Daisy Vision w/ Java. Error compiling

I am writing a program that used most of the math but a different algorithm.
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 05:03 AM.

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