Learn R Programming

animl (version 3.2.0)

export_coco: Converts the .csv file to a COCO-formatted .json file.

Description

Converts the .csv file to a COCO-formatted .json file.

Usage

export_coco(manifest, class_list, out_file, info = NULL, licenses = NULL)

Value

coco formated json

Arguments

manifest

dataframe containing images and associated detections

class_list

dataframe containing class names and their corresponding IDs

out_file

path to save the formatted file

info

info section of COCO file, named list

licenses

licenses section of COCO file, array

Examples

Run this code
if (FALSE) export_megadetector(manifest, output_file= 'results.json', detector='MDv6')

Run the code above in your browser using DataLab