diff --git a/examples/utils/__init__.py b/examples/utils/__init__.py index 72d0bf8..5b357df 100644 --- a/examples/utils/__init__.py +++ b/examples/utils/__init__.py @@ -1 +1 @@ -from plot3dUtils import Open3dVisualizer \ No newline at end of file +from .plot3dUtils import Open3dVisualizer \ No newline at end of file diff --git a/pykinect_azure/k4a/capture.py b/pykinect_azure/k4a/capture.py index 27b7a85..38c5fce 100644 --- a/pykinect_azure/k4a/capture.py +++ b/pykinect_azure/k4a/capture.py @@ -106,6 +106,9 @@ def get_pointcloud(self, calibration_type = _k4a.K4A_CALIBRATION_TYPE_DEPTH): def get_transformed_pointcloud(self): ret, points = self.get_transformed_pointcloud_object().to_numpy() + if not ret: + return ret, [] + points = points.reshape((-1, 3)) return ret, points