theonlydvr
23-01-2014, 09:32
Hey all,
I've recently encountered a problem in saving images from the axis camera (M1101). I setup the camera according to instructions and it is working perfectly fine in every other aspect. I get a stream to the dashboard and it can be successfully pinged. However, when I try to use the getImage() function in my code I get an AxisCameraException saying no image is found even though the SmartDashboard is streaming well.
This is my code (very simple):
try
{
Axis.getInstance("10.43.38.11").getImage().write("image.jpg");
}
catch (AxisCameraException ace)
{
ace.printStackTrace();
}
catch (NIVisionException nive)
{
nive.printStackTrace();
}
Thanks,
Evan Dastin-van Rijn
I've recently encountered a problem in saving images from the axis camera (M1101). I setup the camera according to instructions and it is working perfectly fine in every other aspect. I get a stream to the dashboard and it can be successfully pinged. However, when I try to use the getImage() function in my code I get an AxisCameraException saying no image is found even though the SmartDashboard is streaming well.
This is my code (very simple):
try
{
Axis.getInstance("10.43.38.11").getImage().write("image.jpg");
}
catch (AxisCameraException ace)
{
ace.printStackTrace();
}
catch (NIVisionException nive)
{
nive.printStackTrace();
}
Thanks,
Evan Dastin-van Rijn