def import_photogrammetry_cameras(self, cameras, parent_collection):
        """Import the cameras using the properties of this class."""
        if not self.import_cameras and not self.add_camera_motion_as_animation:
            return {"FINISHED"}

        cameras, success = self.set_image_size_of_cameras(cameras)
        if not success:
            return {"FINISHED"}

        cameras, success = self.set_intrinsics_of_cameras(cameras)
        if not success:
            return {"FINISHED"}

        # The principal point may be part of the reconstruction data
        if not self.__class__._principal_points_initialized(cameras):
            self.__class__._set_principal_point_for_cameras(
                cameras, self.default_pp_x, self.default_pp_y, self
            )

        if self.adjust_render_settings:
            adjust_render_settings_if_possible(cameras, op=self)

        if self.import_cameras:
            add_cameras(
                cameras,
                parent_collection,
                add_background_images=self.add_background_images,
                add_image_planes=self.add_image_planes,
                add_depth_maps_as_point_cloud=self.add_depth_maps_as_point_cloud,
                camera_scale=self.camera_extent,
                image_plane_transparency=self.image_plane_transparency,
                add_image_plane_emission=self.add_image_plane_emission,
                use_default_depth_map_color=self.use_default_depth_map_color,
                depth_map_default_color=self.depth_map_default_color,
                depth_map_display_sparsity=self.depth_map_display_sparsity,
                depth_map_id_or_name_str=self.depth_map_id_or_name_str,
                op=self,
            )

        if self.add_camera_motion_as_animation:
            add_camera_animation(
                cameras=cameras,
                parent_collection=parent_collection,
                animation_frame_source=self.animation_frame_source,
                add_background_images=self.add_animated_camera_background_images,
                reorganize_undistorted_images=self.reorganize_undistorted_images,
                number_interpolation_frames=self.number_interpolation_frames,
                interpolation_type=self.interpolation_type,
                remove_rotation_discontinuities=self.remove_rotation_discontinuities,
                consider_missing_cameras_during_animation=self.consider_missing_cameras_during_animation,
                image_dp=self.image_dp,
                image_fp_type=self.image_fp_type,
                op=self,
            )
        return {"FINISHED"}
Import the cameras using the properties of this class.
photogrammetry_importer/importers/camera_importer.py