获取这个文件中的<bndbox>
中的<xmin><ymin><xmax><ymax>
值
import xml.etree.ElementTree as ET
xml_path = "/home/A/1.xml"
tree = ET.parse(label_path)
root = tree.getroot() # <annotation>里的内容
bboxs = []
for obj in root.iter('object'): # <annotation>里的<object>
b = (int(float(xmlbox.find('xmin').text)), # bbox坐标
int(float(xmlbox.find('ymin').text)),
int(float(xmlbox.find('xmax').text)),
int(float(xmlbox.find('ymax').text)))
bboxs.append(b)