Example #1
0
 def update_depth(self, response):
     w = response.image_depth.width
     h = response.image_depth.height
     if w == 0:
         return False
     self.img_depth = bytes_to_ndarray(response.image_depth.data)
     return True
Example #2
0
 def update_ir(self, response):
     w = response.image_ir.width
     h = response.image_ir.height
     if w == 0:
         return False
     self.img_ir = bytes_to_ndarray(response.image_ir.data)
     return True
Example #3
0
 def update_rgb(self, response):
     w = response.image_rgb.width
     h = response.image_rgb.height
     c = response.image_rgb.channel
     if w == 0:
         return False
     self.img_rgb = bytes_to_ndarray(response.image_rgb.data)
     return True
Example #4
0
 def update_depth(self, response):
     w = response.image_depth.width
     h = response.image_depth.height
     if w == 0:
         self.depth_range = drange_dict[-1]
         return False
     self.img_depth = bytes_to_ndarray(response.image_depth.data)
     self.depth_range = drange_dict[response.image_depth.depth_range]
     return True