Log in

View Full Version : Axis Camera


BLUEBELL
14-02-2015, 10:18
How can I use an Axis Camera to send a camera feed without using Vision in Java?

CreativeName55
15-02-2015, 09:18
What do you mean? You just want the basic camera view to come up on smartdashboard or something without doing any vision processing?

JacobD
16-02-2015, 15:16
import edu.wpi.first.wpilibj.vision.AxisCamera;

AxisCamera cam1 = new AxisCamera("10.XX.XX.X"); //put in your camera's ip

public static AxisCamera.Resolution k640x360;



https://wpilib.screenstepslive.com/s/4485/m/24194/l/144985-configuring-an-axis-camera

Follow those instructions exactly then...

Put this into your code.

BLUEBELL
16-02-2015, 20:07
Will that display the camera on the dashboard?

JacobD
16-02-2015, 20:25
Yes it will, you just have to go to your dashboard and add the camera with the ip.

BLUEBELL
17-02-2015, 20:10
Where do I go on the dashboard to add the camera?

JacobD
17-02-2015, 20:43
Where do I go on the dashboard to add the camera?

I believe it is somewhere on the bottom right side. It lets you choose from Ip Camera, HW Webcam, or SW Webcam.

nickmcski
18-02-2015, 12:16
Where do I go on the dashboard to add the camera?

Are you using SmartDashboard (http://wpilib.screenstepslive.com/s/4485/m/26401/l/255407-getting-started-with-the-smartdashboard) or SmartDashboard 2 (SFX) (http://wpilib.screenstepslive.com/s/4485/m/26401/l/255406-the-new-smartdashboard-sfx)?