From e39d99e1732dabd9492395aba807f31f9f9bea0c Mon Sep 17 00:00:00 2001 From: Eskil Aursand Date: Wed, 16 Aug 2023 12:21:16 +0200 Subject: [PATCH] fixup! Add Python support for new experimental projection API --- modules/zivid/experimental/projection.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/zivid/experimental/projection.py b/modules/zivid/experimental/projection.py index 8eedf4eb..8913a351 100644 --- a/modules/zivid/experimental/projection.py +++ b/modules/zivid/experimental/projection.py @@ -127,9 +127,11 @@ def show_image(camera, image_bgra): def pixels_from_3d_points(camera, points): """Get 2D projector pixel coordinates corresponding to 3D points relative to the camera. - This function takes 3D points in the camera's reference frame and converts them to the - projector's 2D (XY) frame using the internal calibration of a Zivid camera. The returned - points maps to projector pixels as round(X)->col and round(Y)->row. + This function takes 3D points in the camera's reference frame and converts them to the projector frame + using the internal calibration of a Zivid camera. In a Zivid point cloud, each point corresponds to a + pixel coordinate in the camera, but the projector has a slight offset. The translation of each point + depends on the distance between the camera and the point, as well as the distance and angle between the + camera and the projector. Args: camera: The Camera instance that the 3D points are in the frame of.