PDA

View Full Version : Problem with calibration utility


guig
August 3rd, 2005, 07:04 PM
Dear all,

I need to calibrate my cam but I can't run calib_dist and calib_camera2.
calib_cparam is working fine but I need some parameters from calib_dist to use it.

I am using a firewire camera and all is working fine with simplelite and simplevrml. I try with a basic USB webcam(na:logitech quickcam messenger) and i have the same problem. It ejects me (l.607 in calib_dist.c) displaying an access violation reading location error.

Is someone have the same problem ?

Another question: With the firewire cam i can just select the default capture resolution value (na:320*240), is there a way to change this and do hi-res capture?


Thanks.

Graham
September 10th, 2005, 01:12 PM
philip lamb would be the expert on this, however I may be able to answer for you:

the camera calibration programs, when run on windows will often crash due to some obscure bug within the gsub library. I'm not entirely sure why it was, but the cause was the settings inside the tools source code.
Basically, if they are set to use an openGL texture object to display the video, they will crash. Whereas if they use glDrawPixels (slower) they will run fine (but the video may be upside down).

The solution is to recompile the tools. There are one of two bits of code that will need to be changed (depending on the version)

either find and change:

#define USE_TEXMAP

to

#undef USE_TEXMAP


or if that doesn't exist, find the variable:

static int drawMode

and change it to:

static int drawMode = AR_DRAW_BY_GL_DRAW_PIXELS;


Hope that helps.

philip_lamb
September 16th, 2005, 01:52 AM
Thanks for that note Graham.

This problem is fixed in the upcoming ARToolKit 2.71 release.

Cheers,
Phil.