coco_to_binary_masks
- cocohelper.utils.segmentation.coco_to_binary_masks(ch, dest_dir, scaling=1.0)[source]
Converts annotations from COCO to binary masks.
- Parameters:
ch (COCOHelper) – a COCOHelper containing the source COCO dataset.
dest_dir (Union[str, Path]) – a destination directory for the output (converted) files.
scaling (Optional[float]) – an optional scaling parameter to rescale annotation values and improve their visibility by the human eye when opened with GUI tools.
- Returns:
None. Outputs the converted dataset in the given destination directory.
- Return type:
None