Exemple #1
0
 def test_capture(device: PyK4A):
     device.open()
     device._start_cameras()
     capture = device.get_capture()
     assert capture._capture_handle is not None
Exemple #2
0
 def test_start_stop_cameras(device: PyK4A):
     device.open()
     device._start_cameras()
     device._stop_cameras()
Exemple #3
0
 def test_start_stop_imu(device: PyK4A):
     device.open()
     device._start_cameras()  # imu will not work without cameras
     device._start_imu()
     device._stop_imu()
     device._stop_cameras()
Exemple #4
0
 def test_get_imu_sample(device: PyK4A):
     device.open()
     device._start_cameras()
     device._start_imu()
     sample = device.get_imu_sample()
     assert sample is not None
Exemple #5
0
 def test_calibration(device: PyK4A):
     device.open()
     device._start_cameras()
     calibration = device.calibration
     assert calibration