etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

capture.transormed_depth raise error for captures received from playback #81

Closed shagren closed 3 years ago

shagren commented 3 years ago
  File "playback.py", line 21, in play
    cv2.imshow("Depth", colorize(capture.transformed_depth, (None, 5000)))
  File "/home/shagren/PycharmProjects/altis-local-api/venv/lib/python3.7/site-packages/pyk4a/capture.py", line 50, in transformed_depth
    self._transformed_depth = depth_image_to_color_camera(self._depth, self._calibration, self.thread_safe)
  File "/home/shagren/PycharmProjects/altis-local-api/venv/lib/python3.7/site-packages/pyk4a/transformation.py", line 16, in depth_image_to_color_camera
    calibration.transformation_handle, thread_safe, depth, calibration.color_resolution,