(self, data)
return ann
Convert result data from a numpy array [Nx7] where each row contains {imageID,x1,y1,w,h,score,class}
        :param  data (numpy.ndarray)
        :return: annotations (python nested list)
Convert result data from a numpy array [Nx7] where each row contains {imageID,x1,y1,w,h,score,class}
        :param  data (numpy.ndarray)
        :return: annotations (python nested list)
Convert result data from a numpy array [ Nx7 ] where each row contains { imageID x1 y1 w h score class } : param data ( numpy . ndarray ) : return : annotations ( python nested list )
def loadNumpyAnnotations(self, data):
        """
        Convert result data from a numpy array [Nx7] where each row contains {imageID,x1,y1,w,h,score,class}
        :param  data (numpy.ndarray)
        :return: annotations (python nested list)
        """
        print('Converting ndarray to lists...')
        assert(type(data) == np.ndarray)
        print(data.shape)
        assert(data.shape[1] == 7)
        N = data.shape[0]
        ann = []
        for i in range(N):
            if i % 1000000 == 0:
                print('{}/{}'.format(i,N))
            ann += [{
                'image_id'  : int(data[i, 0]),
                'bbox'  : [ data[i, 1], data[i, 2], data[i, 3], data[i, 4] ],
                'score' : data[i, 5],
                'category_id': int(data[i, 6]),
                }]
        return ann
def loadNumpyAnnotations ( self , data ) : print ( 'Converting ndarray to lists...' ) assert ( type ( data ) == np . ndarray ) print ( data . shape ) assert ( data . shape [ 1 ] == 7 ) N = data . shape [ 0 ] ann = [ ] for i in range ( N ) : if i % 1000000 == 0 : print ( '{}/{}' . format ( i , N ) ) ann += [ { 'image_id' : int ( data [ i , 0 ] ) , 'bbox' : [ data [ i , 1 ] , data [ i , 2 ] , data [ i , 3 ] , data [ i , 4 ] ] , 'score' : data [ i , 5 ] , 'category_id' : int ( data [ i , 6 ] ) , } ] return ann