from_dict#
- static rlemasklib.RLEMask.from_dict(d)[source]#
Create an RLEMask object from an RLE dictionary.
- Parameters:
d (dict) –
RLE dictionary with
"size"– [height, width] of the mask"counts"– LEB128-like compressed run-length counts as in pycocotools, or"zcounts"– zlib compressed"counts", or"ucounts"– uncompressed"counts"
- Returns:
An RLEMask object representing the input mask.
- Return type: