tlc.core.objects.tables.from_url.table_from_coco#

A table populated from a dataset in the COCO format

Module Contents#

Classes#

Class

Description

TableFromCoco

A table populated from a annotations json-file and a image folder.

API#

class tlc.core.objects.tables.from_url.table_from_coco.TableFromCoco(url: tlc.core.url.Url | None = None, created: str | None = None, description: str | None = None, row_cache_url: tlc.core.url.Url | None = None, row_cache_populated: bool | None = None, override_table_rows_schema: Any = None, input_url: tlc.core.url.Url | str | None = None, image_folder_url: tlc.core.url.Url | str | None = None, init_parameters: Any = None)#

Bases: tlc.core.objects.tables.in_memory_rows_table._InMemoryRowsTable

A table populated from a annotations json-file and a image folder.

References: COCO data format: https://cocodataset.org/#format-data COCO data format APIs: https://github.com/cocodataset/cocoapi

Parameters:
  • url – The URL of the table.

  • created – The creation time of the table.

  • description – The description of the table.

  • row_cache_url – The URL of the row cache.

  • row_cache_populated – Whether the row cache is populated.

  • override_table_rows_schema – The schema to override the table rows schema.

  • init_parameters – The initial parameters of the table.

property coco: pycocotools.coco.COCO#

Load COCO object from input_url if not already loaded.