Skip to content

Update create_csv.py#187

Open
ET0E wants to merge 1 commit intoEdjeElectronics:masterfrom
ET0E:patch-1
Open

Update create_csv.py#187
ET0E wants to merge 1 commit intoEdjeElectronics:masterfrom
ET0E:patch-1

Conversation

@ET0E
Copy link

@ET0E ET0E commented Jun 3, 2024

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)
)

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

@ET0E ET0E left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant