예제 #1
0
파일: mask.py 프로젝트: bagxi/cocoapi
def toBbox(rleObjs):
    if isinstance(rleObjs, list):
        return _mask.toBbox(rleObjs)
    else:
        return _mask.toBbox([rleObjs])[0]
예제 #2
0
파일: mask.py 프로젝트: jayelm/cocoapi
def toBbox(rleObjs):
    if type(rleObjs) == list:
        return _mask.toBbox(rleObjs)
    else:
        return _mask.toBbox([rleObjs])[0]
예제 #3
0
def toBbox(rleObjs):
    if type(rleObjs) == list:
        return _mask.toBbox(rleObjs)
    else:
        return _mask.toBbox([rleObjs])[0]