generate_cropped_csv_fileο
- lightning_pose.utils.cropzoom.generate_cropped_csv_file(input_csv_file: str | Path, input_bbox_file: str | Path, output_csv_file: str | Path, mode: str = 'subtract')[source]ο
Adjusts coordinates in the input CSV file either by adding or subtracting corresponding values from a bounding box CSV file. The resulting data is saved to a new output CSV file.
- Parameters:
input_csv_file (str | Path) β Path to the input CSV file containing coordinate data.
input_bbox_file (str | Path) β Path to the CSV file containing bounding box data.
output_csv_file (str | Path) β Path where the output CSV file will be saved.
mode (str) β Specifies the operation to apply to the coordinates. Must be βaddβ or βsubtractβ. Defaults to βsubtractβ.
- Raises:
ValueError β If the provided mode is not βaddβ or βsubtractβ.