Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Printing precise AR markers

Hi all, I'm trying to implement a class that automatically generates markers to locate and identify specific objects by means of a label. The markers are going to be printed and it is mandatory that the printed marker size is known, so I can accurately locate the objects in 3D with a single image.

The obvious approach to me is to modify the image's dpi, but that not seems to be possible in OpenCV. The default dpi of 96 is too small for my application, since at that dpi the mm per pixel are about 0.4. I would need something like 0.1 mm/px.

Does someone know how to change an image's dpi in OpenCV? Have someone found another way to get the images to be printed in a more precise way than printing at 96 dpi?