def toBbox(rleObjs): if isinstance(rleObjs, list): return _mask.toBbox(rleObjs) else: return _mask.toBbox([rleObjs])[0]
def toBbox(rleObjs): if type(rleObjs) == list: return _mask.toBbox(rleObjs) else: return _mask.toBbox([rleObjs])[0]