Autofocus Challenge with Vuforia Cloud-Primarily based AR on iPhone 16 Professional Max
Abstract:
I am growing a cloud-based AR app utilizing Vuforia that tracks photographs and shows movies. The app works nicely on most iPhone fashions, however I am encountering a critical autofocus concern on the iPhone 16 Professional Max.
Downside Abstract:
The continual autofocus does not work reliably on the iPhone 16 Professional Max. Regardless of utilizing Vuforia’s digicam configuration for steady autofocus and implementing it throughout runtime via scripting, the autofocus stays unstable and sluggish. This impacts picture recognition and monitoring efficiency, particularly when the goal picture or cellphone strikes barely.
Noticed Habits:
-
Different iPhone fashions: Autofocus works swiftly and precisely with out points.
-
iPhone 16 Professional Max: Autofocus both doesn’t interact in any respect or could be very sluggish and unreliable. Even when the picture seems to be in focus, the app typically fails to acknowledge the goal picture.
Anticipated Habits:
-
The autofocus ought to work constantly throughout all units, together with the iPhone 16 Professional Max.
-
The script ought to efficiently interact steady autofocus after Vuforia initializes, with easy recognition and secure monitoring.
What I’ve Tried:
-
Vuforia Digital camera Configuration: I set steady autofocus within the Vuforia Configuration within the Inspector window, however it didn’t resolve the problem.
-
Runtime Autofocus through Script: I applied steady autofocus utilizing the script under, however the concern persists.
utilizing UnityEngine;
utilizing Vuforia;
public class CamerafocusController: MonoBehaviour
{
void Begin()
{
VuforiaApplication.Occasion.OnVuforiaStarted += OnVuforiaStarted;
}
non-public void OnVuforiaStarted()
{
bool focusModeSet = VuforiaBehaviour.Occasion.CameraDevice.SetFocusMode(FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
if (!focusModeSet)
{
Debug.Log("Did not set focus mode" + focusModeSet);
}
VuforiaBehaviour.Occasion.CameraDevice.SetCameraMode(Vuforia.CameraMode.MODE_OPTIMIZE_SPEED);
}
}
Nonetheless, the autofocus response continues to be inconsistent on the iPhone 16 Professional Max, and the digicam struggles to give attention to the goal picture.
Steps to Reproduce:
-
Create a primary Vuforia mission with a picture goal.
-
Construct and deploy the app to an iPhone 16 Professional Max.
-
Observe the autofocus habits whereas scanning the goal picture.
Affected Variations:
Different Observations:
-
The autofocus works fantastic on different iPhone fashions however not on the iPhone 16 Professional Max.
-
Even when the picture seems in focus, Vuforia typically fails to acknowledge the goal.
Query:
Has anybody encountered related autofocus points on the iPhone 16 Professional Max with Vuforia? Are there any workarounds or particular configurations I can apply to enhance the autofocus habits and guarantee constant monitoring on this system?