neodroidvision.segmentation.masks.run_length_encoding.mask_to_run_length

neodroidvision.segmentation.masks.run_length_encoding.mask_to_run_length(img: ndarray) str[source]

Convert mask to rle. img: numpy array, 1 - mask, 0 - background Returns run length as string formated