Real-time fiducial generation and tracking

Hello,
I am trying to develop an app using AR foundation (ARkit) where people can:

  1. Capture an image of an object through the camera.
  2. Set that image to be a fiducial in real-time (by adding it to the Reference Image Library).
  3. Place a prefab and track the fiducial.

I have played around with the AR foundation samples, but I am not sure if it can generate fiducials on the fly from images. Does anyone know if this is possible to build through Unity and AR foundation and if so could guide me through some resources?

Quick update, I found this old thread talking about it: AR Foundation using reference image library during runtime

So I know it is possible to add images in real-time now. But will still like some help to be able to add camera images to the reference image library.

ARFoundation doesn’t implicitly support fiducials. Please refer to the following documentation to add image reference to the lib in real-time.

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@3.0/manual/tracked-image-manager.html#adding-new-reference-images-at-runtime

You can also grab the camera image from CPU using the following

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/manual/cpu-camera-image.html