TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi icon indicating copy to clipboard operation
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard

Update create_csv.py

Open ET0E opened this issue 1 year ago • 0 comments
trafficstars

This will solve the issue I had ""IndexError: child index out of range "

Edit:

for member in root.findall('object'): value = (root.find('filename').text, int(root.find('size').find('width').text), int(root.find('size').find('height').text), member[0].text, int(member.find("bndbox").find('xmin').text), int(member.find("bndbox").find('ymin').text), int(member.find("bndbox").find('xmax').text), int(member.find("bndbox").find('ymax').text) )

ET0E avatar Jun 03 '24 17:06 ET0E