Ar
scalacv.vision.Ar
object Ar
Marker-based augmented reality: recover a marker's 3D pose from its detected corners, then project model geometry back onto the image to draw on top of it.
The flow is the classic one. estimatePose runs solvePnP (with the square-planar IPPE_SQUARE solver, which is both faster and more stable for a flat tag than the general iterative one) against the four corners an Aruco detection gives you, yielding a Pose3D. project then maps any Point3 model — a set of axes, a cube — through that pose and the camera Intrinsics to pixel coordinates you can draw with the ordinary Draw verbs. The high-level image.drawMarkerAxes and image.drawMarkerCube wire all three steps together.
Attributes
Members list
In this article