Skip to content

[Feature] Add support for the command line interface #1

@holtvogt

Description

@holtvogt

Feature Description

Add a CLI to the tracklet-parser package to allow users to parse tracklet XML files and convert them to KITTI format directly from the terminal. The CLI should use argparse for argument parsing and provide options for specifying the input XML file, frame list, and output directory.

Use Case

As some users might want to automate the steps to create label files, it would be handy to execute the tracklet parser via the command line with arguments.

Proposed Solution

  1. Add a cli.py module to handle CLI logic.
  2. Allow users to run the package via python -m tracklet_parser or a CLI entry point.
  3. Provide the following arguments:
    • --labels: Path to the tracklet XML file (required).
    • --frames: Path to the frame list file (optional).
    • --outputs: Directory to save KITTI format files (default: output).

Additional Context

Example usage:

python -m tracklet_parser --labels path/to/tracklet_labels.xml --frames path/to/frame_list.txt --output path/to/output_dir

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions