def _get_obj_cord(obj_index, cord_x_seq, cord_y_seq):
  """Get the coordinate of an object."""
  return [
      min(cord_x_seq[obj_index]),
      max(cord_x_seq[obj_index]),
      min(cord_y_seq[obj_index]),
      max(cord_y_seq[obj_index])
  ]