Go to Post Attitudes in one part of life tend to carry over to others. - Wetzel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-02-2013, 17:49
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
Can't get camera image from Axis M1011

I'm trying to run the default 2013 vision sample with the axis camera, but I can't aquire an image from it. It crashes on the line where it first tries to access the image from the camera and the image is a NULL pointer. I manually configured the camera settings based on the guide because the camera config tool wouldn't work. What would be causing me to get a NULL image from the axis?
  #2   Spotlight this post!  
Unread 17-02-2013, 21:52
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
Re: Can't get camera image from Axis M1011

I tried passing the correct ip address to the axis camera's instance method but it still returns an empty image. It returns an error code of 0, but the image returns -1 as it's width and height. I also set the FRC user and password, enabled anonymous viewers, and double checked the ip address. It's an Axis M1011 and the docs say the class is used for the Axis 206. Is there an M1011 class somewhere? Or does the AxisCamera class work with the 1011 also. Also, I installed the new team update, so all the software should be up to date.
  #3   Spotlight this post!  
Unread 18-02-2013, 17:44
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,192
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Can't get camera image from Axis M1011

We started this year with the 206, and last week received the M1011. We had no problem changing the camera without any code change. We are programming in C.

If you are manually configuring the camera because the initialization code doesn't work, then that could be the cause of getting a null pointer when you try to get an image. The initialization code sets up all the procedures for communicating with the camera. If you call the access routines without first initializing, then the access routines may not work correctly.

I don't think you need to pass the IP address. I setup the IP address of the camera to be 10.xx.yy.11, where xx.yy is your team number. The code found it without a problem. You also need a user named FRC, with a password of FRC (both are upper case). I gave the user Admin privileges.

Last edited by rich2202 : 18-02-2013 at 17:47.
  #4   Spotlight this post!  
Unread 19-02-2013, 10:50
DarthCoder DarthCoder is offline
Registered User
FRC #4309
 
Join Date: Aug 2012
Location: Washington
Posts: 37
DarthCoder is an unknown quantity at this point
Re: Can't get camera image from Axis M1011

So I should actually be using the WriteResolution function and the others like it instead of setting the options on the axis camera? I have a user named FRC and I'm pretty sure the password is FRC but I'll double check.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi