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:

[javac] C:\Users\mikec\workspacejava\FRC-2016\src\edu\missdaisy\smartdashboard\daisycv\DaisyCVWidget.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\DaisyCVWidget.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\DaisyCVWidget.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\DaisyCVWidget.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\DaisyCVWidget.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!

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.

Thanks for the reply! I will try to get this working, and thanks for your advice!

I am writing a program that used most of the math but a different algorithm.