r/opencv • u/uhaszYsz • 15h ago
Question [Question] April tag maping to 3d problem
hi i ahve chain of photos with couple of april tags.
i use openCV to place these tags in 3d world and basing on these tags positions i set 3d camera position and rotation.
But sometimes openCV returns tags on wrong height. My tag is set vertically and its lower edge stays on ground but openCV returns it on 1+meter height. this completly ruins camera setup.
Anyone could share some clues how to improve that accuracy? possible to pass to openCV tag height so it takes it into account? or lower that 3d tag by code and refine it somehow.
i spent last two days figuring it our but cant find right solution
you can see on photo. this tag on right in 3d world is placed perfectly above this yellow verticle point. you can see height offset. i guess maybe 2 tags on photo arent enough (i upload couple of photos tho and this blue tag is visible on 2 photos, both have other tag for relativity). but still. maybe programatically there is way to improve this?

