Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cpp-example-calibration fails; displays images but does not export camera.yml

I'm running cpp-example-calibration under Linux with a set of 6 chessboard images in an attempt to get camera distortion information. My command looks like this:

../cpp-example-calibration -w 7 -h 5 -pt chessboard -o camera.yml -op -oe imagelist.xml

and my imagelist.xml looks like this:

<?xml version="1.0"?>
<opencv_storage>
<images>
pic1.jpg pic2.jpg pic3.jpg pic4.jpg pic5.jpg pic6.jpg </images>
</opencv_storage>

a sample image from my calibration set is: image description

I've run this on two different Linux machines so far with the same result: Image View pops up, displays the 6 images unmodified in sequence, and then closes. This process takes 5 or so minutes, so it is doing some work, but it doesn't produce a .yml file! Does anyone have any ideas about what I'm doing wrong?

click to hide/show revision 2
retagged

updated 2014-03-03 13:42:37 -0600

berak gravatar image

cpp-example-calibration fails; displays images but does not export camera.yml

I'm running cpp-example-calibration under Linux with a set of 6 chessboard images in an attempt to get camera distortion information. My command looks like this:

../cpp-example-calibration -w 7 -h 5 -pt chessboard -o camera.yml -op -oe imagelist.xml

and my imagelist.xml looks like this:

<?xml version="1.0"?>
<opencv_storage>
<images>
pic1.jpg pic2.jpg pic3.jpg pic4.jpg pic5.jpg pic6.jpg </images>
</opencv_storage>

a sample image from my calibration set is: image description

I've run this on two different Linux machines so far with the same result: Image View pops up, displays the 6 images unmodified in sequence, and then closes. This process takes 5 or so minutes, so it is doing some work, but it doesn't produce a .yml file! Does anyone have any ideas about what I'm doing wrong?