Skip to content

Helper function to generate coco_image_filenames for annotations_to_coco #23

@lochhh

Description

@lochhh

Is your feature request related to a problem? Please describe.
Currently we need to manually supply coco_image_filenames to annotations_to_coco to set the file_name value in the COCO json output.

Describe the solution you'd like
For framelabels.json the file_name should be:

f"sub-{subject_id}_ses-{session_id}_cam-{cam_id}_frame-{frame_number}.{frame_file_ext}"

For cliplabels.json:

f"sub-{subject_id}_ses-{session_id}_cam-{cam_id}_frame-{frame_number}"

We could have a helper function that takes input_path, subject_id, session_id, cam_id to generate this list of filenames to pass to annotations_to_coco.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions