Skip to content

Instantly share code, notes, and snippets.

View tharindu326's full-sized avatar
🏠
Working from home

Tharindu Ekanayake tharindu326

🏠
Working from home
  • Kandy, Sri Lanka
View GitHub Profile
@tharindu326
tharindu326 / converter.py
Created December 16, 2020 13:43 — forked from jrjbertram/converter.py
Quick hack of cvat converter.py to handle interpolation. (Breaks support for non-interpolated annotation, however.)
#!/usr/bin/env python
#
# SPDX-License-Identifier: MIT
"""
Given a CVAT XML and a directory with the image dataset, this script reads the
CVAT XML and writes the annotations in PASCAL VOC format into a given
directory.
This implementation only supports bounding boxes in CVAT annotation format, and
warns if it encounter any tracks or annotations that are not bounding boxes,