Smooth bboxο
Applies temporal smoothing to bounding-box CSV files produced by
litpose create_bbox. Reads every *_bbox.csv file in the input
directory, smooths the x, y, h, and w columns, and writes
the results to a new output directory together with a metadata.json
that records the smoothing parameters used.
The smoothed bboxes can then be passed to litpose crop via
--bbox_dir.
For an end-to-end usage example, see the user guide: Cropzoom pipeline.
usage: litpose smooth_bbox <bbox_dir> --output_dir <dir> [--method METHOD] [--window N]
Positional Argumentsο
- bbox_dir
directory containing raw *_bbox.csv files (output of litpose create_bbox)
Named Argumentsο
- --output_dir
directory where smoothed bbox files and metadata.json will be written
- --method
smoothing method; currently only βmedianβ is supported (default: median)
Default:
'median'- --window
rolling window size in frames (default: 5)
Default:
5