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__
()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
Creates the list of images (in json) and the annotations for each image for the "image" and "annotations" portions of the COCO json
Creates the "info" piece of the COCO json
Creates the "license" portion of the COCO json
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