13 Replies
      Latest reply on Nov 3, 2017 2:11 PM by Ar1144
      sam598 Level 1 Level 1 (0 points)

        The focus of the camera (iPhone 7 plus) seems to be set at a fixed distance when running ARKit. This is fine for games but limiting for AR photo and video apps.

         

        Is there a way to set the focus distance further away, or even better enabled autofocus while using ARKit? Presumably changing the camera's focus distance affects the field of view, but that appears to be updated with every frame anyway.

         

        Thanks!

        • Re: Camera fixed focus distance
          thomas.pintaric Level 2 Level 2 (55 points)

          You are correct in assuming that focal changes will affect the camera's intrinsic parameters. During the auto-focus searching process any visual tracking would have to be paused, or you'd risk corrupting the internal keypoint map. I think for this reason, we won't see auto-focus in ARKit.

           

          I do agree that it would be nice to be able to manually set an initial fixed focus prior to starting the tracking session.

            • Re: Camera fixed focus distance
              sam598 Level 1 Level 1 (0 points)

              Thanks for the response! Vuforia is able to run on iOS with autofocus, and while it is a different kind of tracking I don't think autofocus is never going to happen. If the focus distance is known for a frame, and the lens is fully calibrated, it should be able to take the difference into account.

               

              Also since it looks like ARFrame returns a new projection matrix every frame, my hope is the API is already able to handle something like this, and it just hasn't been implemented yet.

            • Re: Camera fixed focus distance
              dhakimwp Level 1 Level 1 (0 points)

              My own iPhone 7 Plus has been out of focus specifically for ARKit apps in most settings I've tried. This is not the case on the single camera iPhone 7 or in other apps that use the camera on the same device. I've filed a bug report and referenced this thread but I'm wondering now if this is an issue specific to (or at least more common on) the 7+.

              • Re: Camera fixed focus distance
                h5ha Level 1 Level 1 (0 points)

                Hi, also experiencing this on iPhone 8 plus. Images are really sharp on a 6s, however completely out of focus on iPhone 8 plus. Will file a bug report. Any resolution?

                • Re: Camera fixed focus distance
                  Ar1144 Level 1 Level 1 (0 points)

                  Had same issue on my 7 plus and now on my X