def parse_labels_voc(label_file):
	"""
	Definition: Parses label file to extract label and bounding box
		coordintates.

	Parameters: label_file - list of labels in images
	Returns: all_labels - contains a list of labels for objects in the image
			 all_coords - contains a list of coordinates for objects in image
	"""
	lfile = open(label_file)
	coords = []
	all_coords = []
	all_labels = []
	for line in lfile:
		l = line.split(" ")
		all_labels.append(l[0])
		coords = list(map(int, list(map(float, l[4:8]))))
		xmin = coords[0]
		ymin = coords[1]
		xmax = coords[2]
		ymax = coords[3]
		tmp = [xmin, ymin, xmax, ymax]
		all_coords.append(list(map(int, tmp)))
	lfile.close()
	return all_labels, all_coords