def execute(self, context):
        """Import an :code:`OpenSfM` :code:`JSON` file."""
        path = os.path.join(self.directory, self.filepath)
        log_report("INFO", "path: " + str(path), self)

        self.image_dp = self.get_default_image_path(path, self.image_dp)
        log_report("INFO", "image_dp: " + str(self.image_dp), self)

        cameras, points = OpenSfMJSONFileHandler.parse_opensfm_file(
            path,
            self.image_dp,
            self.image_fp_type,
            self.reconstruction_number,
            self.suppress_distortion_warnings,
            self,
        )

        log_report("INFO", "Number cameras: " + str(len(cameras)), self)
        log_report("INFO", "Number points: " + str(len(points)), self)

        reconstruction_collection = add_collection("Reconstruction Collection")
        self.import_photogrammetry_cameras(cameras, reconstruction_collection)
        self.import_photogrammetry_points(points, reconstruction_collection)
        self.apply_general_options()

        return {"FINISHED"}
Import an :code:`OpenSfM` :code:`JSON` file.
photogrammetry_importer/operators/opensfm_import_op.py