![]() |
How to make the camera work? (Java)
We are trying to get the camera to show it's display on the dashboard but we've failed to get any kind of input showing.
![]() And here's our code: Code:
package org.usfirst.frc.team5580.robot;If you have any idea on what we should do please post a reply |
Re: How to make the camera work? (Java)
We got it to work by getting the cameraServer instance, calling the cameraServer with "cam0" argument and calling the start capture method.
|
Re: How to make the camera work? (Java)
import edu.wpi.first.wpilibj.CameraServer;
CameraServer cams = CameraServer.getInstance(); // set any cam parameters, then start capture cams.startAutomaticCapture("cam0"); |
Re: How to make the camera work? (Java)
Our team had trouble viewing the camera on the default dashboard, viewing it with smart dashboard or another program may be easier. To use smart dashboard, you send the image with the camera server class (we don't use automatic capture so we can set the frame rate)
Code:
int count = 0; |
Re: How to make the camera work? (Java)
Our team had to set the quality to 25% for the feed to show
|
Re: How to make the camera work? (Java)
Quote:
|
| All times are GMT -5. The time now is 14:01. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi