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]

Translate a CSV file by bbox file. Requires the files have the same index.

Defaults to subtraction. Can use mode=’add’ to map from cropped to original space.