neodroidvision.data.synthesis.conversion.mnist.json_generation.coco_json_utilities.CocoJsonCreator

class neodroidvision.data.synthesis.conversion.mnist.json_generation.coco_json_utilities.CocoJsonCreator[source]

Bases: object

__init__()

Methods

__init__()

create_categories()

Creates the "categories" portion of the COCO json Returns: categories: category objects that become part of the final json category_ids_by_name: a lookup dictionary for category ids based on the name of the category

create_images_and_annotations(...)

Creates the list of images (in json) and the annotations for each image for the "image" and "annotations" portions of the COCO json

create_info()

Creates the "info" piece of the COCO json

create_licenses()

Creates the "license" portion of the COCO json

validate_and_process_args(args)

Validates the arguments coming in from the command line and performs initial processing Args: args: ArgumentParser arguments

create_categories()[source]

Creates the “categories” portion of the COCO json Returns: categories: category objects that become part of the final json category_ids_by_name: a lookup dictionary for category ids based

on the name of the category

create_images_and_annotations(category_ids_by_name)[source]

Creates the list of images (in json) and the annotations for each image for the “image” and “annotations” portions of the COCO json

create_info()[source]

Creates the “info” piece of the COCO json

create_licenses()[source]

Creates the “license” portion of the COCO json

validate_and_process_args(args)[source]

Validates the arguments coming in from the command line and performs initial processing Args: args: ArgumentParser arguments