MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / get_kinect_rgbd

Method get_kinect_rgbd

detrsmpl/data/data_structures/smc_reader.py:368–381  ·  view source on GitHub ↗
(self,
                        kinect_id,
                        frame_id,
                        mode='color2depth',
                        threshold=0)

Source from the content-addressed store, hash-verified

366 return np.stack(frames, axis=0)
367
368 def get_kinect_rgbd(self,
369 kinect_id,
370 frame_id,
371 mode='color2depth',
372 threshold=0):
373 if mode == 'color2depth':
374 mapped_color = \
375 self.__map_color_to_depth__(
376 kinect_id, frame_id, threshold=threshold
377 )
378 depth = self.get_kinect_depth(kinect_id, frame_id)[0]
379 return mapped_color, depth
380 else:
381 print('Model {} is not supported...'.format(mode))
382
383 def get_kinect_depth(self, kinect_id, frame_id=None, disable_tqdm=True):
384 """Get several frames captured by a kinect depth camera.

Callers

nothing calls this directly

Calls 3

get_kinect_depthMethod · 0.95
printFunction · 0.50

Tested by

no test coverage detected