Skip to main content

Annotation converter between different formats

Project description

DagsHub Annotation Converter

This package is intended to be a multi-type importer/exporter/converter between different annotation formats.

This package is currently in development and has not that many features implemented. The API is not stable and is subject to change.

The package consists of the Intermediary Representation (IR) annotation format in Python Objects, and importers/exporters for different annotation formats.

Installation

pip install dagshub-annotation-converter

Importers (Image):

from dagshub_annotation_converter.formats.label_studio.task import LabelStudioTask
task_obj = LabelStudioTask.from_json("path/to/label_studio_task.json")

annotations = task_obj.to_ir_annotations()

Exporters (Image):

Experimental Features:

The package contains some experimental features that can be toggled on by setting a corresponding environment variable:

  • DAGSHUB_ANNOTATION_EXPERIMENTAL_CVAT_POSE_GROUPING_BY_GROUP_ID_ENABLED - When importing CVAT annotations, you can put a single bbox and either a points or skeletons annotation in a group, and then they will be grouped together into a pose annotation. When exporting that to YOLO, the bbox and the points will be exported as a single annotation.

You can read more about the features that exist, their limitations and potential side effects in the features.py file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dagshub_annotation_converter-0.1.16.tar.gz (33.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dagshub_annotation_converter-0.1.16-py3-none-any.whl (35.9 kB view details)

Uploaded Python 3

File details

Details for the file dagshub_annotation_converter-0.1.16.tar.gz.

File metadata

File hashes

Hashes for dagshub_annotation_converter-0.1.16.tar.gz
Algorithm Hash digest
SHA256 210331d9350ca0e0db045db6cc921cddafc8c49b7880a7c9a26c5c81ad6ab896
MD5 62348f2c6a49d080c588f8218946e1db
BLAKE2b-256 d4ffb2899f29f0b5b8a5dd0d4f19572c7a3c8fec361640a3547cfcb54e31150f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dagshub_annotation_converter-0.1.16.tar.gz:

Publisher: python-publish.yml on DagsHub/dagshub-annotation-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dagshub_annotation_converter-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for dagshub_annotation_converter-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 7af3f8c9da414defc9ff145d5aa6697b3120d9dff02baf6680de4c0a5736b545
MD5 25778a188943638e8d7d583ff31f17a7
BLAKE2b-256 f2b3a7438fccf60efeb1089a610a36e6ba4850e179134d1aa8972a4251516197

See more details on using hashes here.

Provenance

The following attestation bundles were made for dagshub_annotation_converter-0.1.16-py3-none-any.whl:

Publisher: python-publish.yml on DagsHub/dagshub-annotation-converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page