Skip to content

ValuError when converting floating point bndbox coordinates  #4

@saiabinesh

Description

@saiabinesh

Full error below

add image with IMG_8184.jpg and {'height': 2448, 'width': 3264, 'depth': 3}
Traceback (most recent call last):
File "pascal_voc_xml2json.py", line 172, in
parseXmlFiles(xml_path)
File "pascal_voc_xml2json.py", line 146, in parseXmlFiles
bndbox[option.tag] = int(option.text)
ValueError: invalid literal for int() with base 10: '2006.8831168831168'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions