|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Camera Extension not appearing in SmartDashboard
Our team is trying to write our own custom image processing extension for SmartDashboard but whenever we compile and move the .jar to the extensions folder, nothing shows up in the add menu.
Here is the code we are using Code:
import edu.wpi.first.smartdashboard.camera.WPICameraExtension;
import edu.wpi.first.wpijavacv.WPIColorImage;
import edu.wpi.first.wpijavacv.WPIImage;
public class VisionSystem extends WPICameraExtension {
@Override
public WPIImage processImage(WPIColorImage rawImage) {
return rawImage.getRedChannel();
}
}
|
|
#2
|
||||
|
||||
|
Re: Camera Extension not appearing in SmartDashboard
We had a similar problem. We just re-installed the SmartDashboard from FIRSTForge and used its extensions folder and its jar, and everything was fine afterwards.
|
|
#3
|
|||
|
|||
|
Re: Camera Extension not appearing in SmartDashboard
We tried that and it still doesn't show up. Could it be because it extends WPICameraExtension and not StaticWidget?
|
|
#4
|
||||
|
||||
|
Re: Camera Extension not appearing in SmartDashboard
No, it should be WPICameraExtension if you want it to display the camera image.
Are you sure you are putting your jar in the extensions folder in C:\Program Files\Smart Dashboard, and that you are running the exe in that folder? |
|
#5
|
|||
|
|||
|
Re: Camera Extension not appearing in SmartDashboard
Yes, our extensions folder contains WPICameraExtension.jar and our vision jar file. It also includes a folder named lib which contains javacpp.jar, javacv.jar, javacv-windows-x86.jar, and WPIJavaCV.jar
In the view->Add menu, the extensions that show up are Image, Connection Indicator, Label, Robot Preferences, Camera, and Laptop Camera EDIT: We got it to work by running SmartDashboard through command prompt. Just set directory to SmartDashboard and run Code:
java -jar smartdashboard.jar Last edited by dhe95 : 28-01-2013 at 23:00. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|