original_docstring: 
      Get for each scene the bounding box
      :param scene:
      :return:
      
docstring: Get for each scene the bounding box
docstring_tokens: Get for each scene the bounding box
code: def extract_bounding_boxes(scene):
      """
      Get for each scene the bounding box
      :param scene:
      :return:
      """
      objs = scene['objects']
      rotation = scene['directions']['right']
  
      x_list = []
      y_list = []
      h_list = []
      w_list = []
  
      for i, obj in enumerate(objs):
          [x, y, z] = obj['pixel_coords']
  
          [x1, y1, z1] = obj['3d_coords']
  
          cos_theta, sin_theta, _ = rotation
  
          x1 = x1 * cos_theta + y1 * sin_theta
          y1 = x1 * -sin_theta + y1 * cos_theta
  
          height_d = 6.9 * z1 * (15 - y1) / 2.0
          height_u = height_d
          width_l = height_d
          width_r = height_d
  
          if obj['shape'] == 'cylinder':
              d = 9.4 + y1
              h = 6.4
              s = z1
  
              height_u *= (s * (h / d + 1)) / ((s * (h / d + 1)) - (s * (h - s) / d))
              height_d = height_u * (h - s + d) / (h + s + d)
  
              width_l *= 11 / (10 + y1)
              width_r = width_l
  
          if obj['shape'] == 'cube':
              height_u *= 1.3 * 10 / (10 + y1)
              height_d = height_u
              width_l = height_u
              width_r = height_u
  
          y_min_coord = (y - height_d) / 320.
          y_max_coord = (y + height_u) / 320.
          x_man_coord = (x + width_r) / 480.
          x_min_coord = (x - width_l) / 480.
  
          x_list.append(x_min_coord)
          y_list.append(y_min_coord)
          h_list.append(y_max_coord - y_min_coord)
          w_list.append(x_man_coord - x_min_coord)
  
      return x_list, y_list, w_list, h_list
code_tokens: def extract_bounding_boxes ( scene ) : objs = scene [ 'objects' ] rotation = scene [ 'directions' ] [ 'right' ] x_list = [ ] y_list = [ ] h_list = [ ] w_list = [ ] for i , obj in enumerate ( objs ) : [ x , y , z ] = obj [ 'pixel_coords' ] [ x1 , y1 , z1 ] = obj [ '3d_coords' ] cos_theta , sin_theta , _ = rotation x1 = x1 * cos_theta + y1 * sin_theta y1 = x1 * - sin_theta + y1 * cos_theta height_d = 6.9 * z1 * ( 15 - y1 ) / 2.0 height_u = height_d width_l = height_d width_r = height_d if obj [ 'shape' ] == 'cylinder' : d = 9.4 + y1 h = 6.4 s = z1 height_u *= ( s * ( h / d + 1 ) ) / ( ( s * ( h / d + 1 ) ) - ( s * ( h - s ) / d ) ) height_d = height_u * ( h - s + d ) / ( h + s + d ) width_l *= 11 / ( 10 + y1 ) width_r = width_l if obj [ 'shape' ] == 'cube' : height_u *= 1.3 * 10 / ( 10 + y1 ) height_d = height_u width_l = height_u width_r = height_u y_min_coord = ( y - height_d ) / 320. y_max_coord = ( y + height_u ) / 320. x_man_coord = ( x + width_r ) / 480. x_min_coord = ( x - width_l ) / 480. x_list . append ( x_min_coord ) y_list . append ( y_min_coord ) h_list . append ( y_max_coord - y_min_coord ) w_list . append ( x_man_coord - x_min_coord ) return x_list , y_list , w_list , h_list
short_docstring: Get for each scene the bounding box
short_docstring_tokens: Get for each scene the bounding box
comment: """
      Get for each scene the bounding box
      :param scene:
      :return:
      """