Search Unity

ARFoundation: Last updated frame number for the camera image API?

Discussion in 'AR' started by BinaryBanana, Mar 5, 2019.

  1. BinaryBanana

    BinaryBanana

    Joined:
    Mar 17, 2014
    Posts:
    81
    Hi,
    I am using ARFoundation API to access camera image on the CPU but I can't find a way to get information on what frame it was captured, like it's provided for feature points (lastUpdatedFrame). I need feature points and camera buffer from the same frame so the calculations are in sync.

    Is there a way to get a frame count info for the captured frame/pixel buffer?

    There is only "time" in seconds from https://docs.unity3d.com/Packages/c...e.XR.ARFoundation.ARCameraFrameEventArgs.html but it comes back as huge number (like 1749038) that is independent from the application run-time. I don't see a way to correctly sync it with the lastUpdatedFrame value.

    Thanks.
     
  2. BinaryBanana

    BinaryBanana

    Joined:
    Mar 17, 2014
    Posts:
    81
    Still blocked on this.

    Interesting finding is that when testing the app with ARFoundation Remote Player there is no issue with not synced camera frames with feature points. Everything renders perfectly.