anatools.annotations.convert_yolo module¶
- convert(size, box)¶
Convert bounding box to yolo format: https://stackoverflow.com/questions/56115874/how-to-convert-bounding-box-x1-y1-x2-y2-to-yolo-style-x-y-w-h
- convert_yolo(datadir, outdir, mapping)¶
Generate annotations in YOLO format. Result will be placed in outdir.
- Parameters
datadir (str) – Location of Rendered.ai dataset output.
outdir (str) – Location where the results should be written.
mapfile (str) – The map file used for annotations (YAML only).