def parse_openmvg_file(
        input_openMVG_file_path,
        image_dp,
        image_fp_type,
        suppress_distortion_warnings,
        op=None,
    ):
        """Parse an :code:`OpenMVG` (:code:`.json`) file."""

        log_report("INFO", "parse_openmvg_file: ...", op)
        log_report(
            "INFO", "input_openMVG_file_path: " + input_openMVG_file_path, op
        )
        input_file = open(input_openMVG_file_path, "r")
        json_data = json.load(input_file)

        cams = OpenMVGJSONFileHandler._parse_cameras(
            json_data,
            image_dp,
            image_fp_type,
            suppress_distortion_warnings,
            op,
        )
        view_index_to_absolute_fp = {
            cam.view_index: cam.get_absolute_fp() for cam in cams
        }
        points = OpenMVGJSONFileHandler._parse_points(
            json_data, view_index_to_absolute_fp, op
        )
        log_report("INFO", "parse_openmvg_file: Done", op)
        return cams, points
Parse an :code:`OpenMVG` (:code:`.json`) file.
photogrammetry_importer/file_handlers/openmvg_json_file_handler.py