def __init__(self,modulePath='C:\\Program Files\\Azure Kinect SDK v1.4.0\\sdk\\windows-desktop\\amd64\\release\\bin\\k4a.dll'): self.k4a = _k4a.k4a(modulePath) self.device_handle = _k4a.k4a_device_t() self.capture_handle = _k4a.k4a_capture_t() self.config = config() self.imu_sample = _k4a.k4a_imu_sample_t() self.cameras_running = False self.imu_running = False
def __init__(self, modulePath=None): if modulePath is None: if platform.system().lower() == 'linux': modulePath = r'/usr/lib/x86_64-linux-gnu/libk4a.so' else: modulePath = 'C:\\Program Files\\Azure Kinect SDK v1.4.0\\sdk\\windows-desktop\\amd64\\release\\bin\\k4a.dll' self.k4a = _k4a.k4a(modulePath) self.device_handle = _k4a.k4a_device_t() self.capture_handle = _k4a.k4a_capture_t() self.config = config() self.imu_sample = _k4a.k4a_imu_sample_t() self.cameras_running = False self.imu_running = False