View Single Post
  #1   Spotlight this post!  
Unread 23-01-2014, 09:32
theonlydvr theonlydvr is offline
Registered User
FRC #4338
 
Join Date: Jan 2014
Location: United States
Posts: 12
theonlydvr is an unknown quantity at this point
Axis Camera Exception: No Image Available [Answered]

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):

Code:
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

Last edited by theonlydvr : 23-01-2014 at 10:50. Reason: Answered
Reply With Quote