src/tools/benchmark_tool/benchmark_tool/kittiobjdetsdk/kitti_obj_detection_utils.py
def load_calibration_matrices(calibration_path, frame_number):
        """
        Return a dictionary containing the calibration matrices for the provided frame number.

        @param calibration_path: The path on the filesystem for the folder containing the
            calibration files for each frame
        @type  calibration_path:str
        @param frame_number: The frame number
        @type  frame_number: int
        @return: dict containing the calibration matrices
        """
        file_path = os.path.join(calibration_path, "%06d.txt" %
                                 frame_number)
        matrices = {}
        for line in open(file_path, "r"):
            line = line.rstrip()
            if line:
                key, val = line.split(":", 1)
                matrices[key] = np.array([float(x) for x in val.split()])

                # Shape the matrix, R0_rect is the only 3x3, others are 3x4
                if key == "R0_rect":
                    matrices[key] = np.reshape(matrices[key], [3, 3])
                else:
                    matrices[key] = np.reshape(matrices[key], [3, 4])

        return matrices

        Return a dictionary containing the calibration matrices for the provided frame number.

        @param calibration_path: The path on the filesystem for the folder containing the
            calibration files for each frame
        @type  calibration_path:str
        @param frame_number: The frame number
        @type  frame_number: int
        @return: dict containing the calibration matrices
        
Return a dictionary containing the calibration matrices for the provided frame number.
Return a dictionary containing the calibration matrices for the provided frame number .
def load_calibration_matrices(calibration_path, frame_number):
        file_path = os.path.join(calibration_path, "%06d.txt" %
                                 frame_number)
        matrices = {}
        for line in open(file_path, "r"):
            line = line.rstrip()
            if line:
                key, val = line.split(":", 1)
                matrices[key] = np.array([float(x) for x in val.split()])
                if key == "R0_rect":
                    matrices[key] = np.reshape(matrices[key], [3, 3])
                else:
                    matrices[key] = np.reshape(matrices[key], [3, 4])
        return matrices
def load_calibration_matrices ( calibration_path , frame_number ) : file_path = os . path . join ( calibration_path , "%06d.txt" % frame_number ) matrices = { } for line in open ( file_path , "r" ) : line = line . rstrip ( ) if line : key , val = line . split ( ":" , 1 ) matrices [ key ] = np . array ( [ float ( x ) for x in val . split ( ) ] ) if key == "R0_rect" : matrices [ key ] = np . reshape ( matrices [ key ] , [ 3 , 3 ] ) else : matrices [ key ] = np . reshape ( matrices [ key ] , [ 3 , 4 ] ) return matrices
Return a dictionary containing the calibration matrices for the provided frame number.
Return a dictionary containing the calibration matrices for the provided frame number .
"""
        Return a dictionary containing the calibration matrices for the provided frame number.

        @param calibration_path: The path on the filesystem for the folder containing the
            calibration files for each frame
        @type  calibration_path:str
        @param frame_number: The frame number
        @type  frame_number: int
        @return: dict containing the calibration matrices
        """ # Shape the matrix, R0_rect is the only 3x3, others are 3x4
dict containing the calibration matrices
dict containing the calibration matrices
calibration_path
The path on the filesystem for the folder containing the
calibration files for each frame
The path on the filesystem for the folder containing the calibration files for each frame
frame_number
The frame number
The frame number