# 1.delete the xml that no person or car object # 2.update /*/trainval/VOCdevkit/VOC2007/ImageSets/Main/aeroplane_trainval.txt# for transer to tfrecord
path_root ="/*/VOCdevkit/VOC2007/Annotations1/"
xml_list = os.listdir(path_root)
count =0for axml in xml_list:
path_xml = os.path.join(path_root, axml)
tree = ET.parse(path_xml)
root = tree.getroot()
size =len(root.findall('object'))#print(size)if size ==0:print(axml +" "+'\\')else:
count = count +1print(axml[0:6])print(count)