Marker Understanding not Accurate and Custom parameters not working

Give us as much detail as possible regarding the issue you're experiencing:

Unity Editor version: 2022.3.54
ML2 OS version: 1.11.0
Unity SDK version: 2.6.0
Host OS: (Windows/MacOS): windows

Hi, I am expriencing marker tracking problems. We are integrating our surgery navigation system to Magic Leap and we need to track surgery tools very accurately. We are trying to use magic leap marker understanding. First we tried ready profiles (speed, accuracy, etc.) but not working enough fast and enough accurate. Apriltag location is not detected accurately especially in slow motions. If a fast movement is done tracker detects apriltag almost acceptably well, but if we move tool in places with close distance, tracking becomes exteremely inaccurate, tracker moves from one place to other space very slowly and stops before reaching to the exact location, which stays inaccurate all the time until a fast movement is done again.

In order to solve this issue I tried to use Custom settings, but custom settings not working. I tried changing every parameter every value, but tracking style is always the same, parameters are not affecting. Why the following code not affecting?

detectorSettings = new MarkerDetectorSettings();

detectorSettings.AprilTagSettings.AprilTagType = AprilTag_25H9;
detectorSettings.AprilTagSettings.EstimateAprilTagLength = false;
detectorSettings.AprilTagSettings.AprilTagLength = ...;
detectorSettings.MarkerDetectorProfile = Custom;

CustomProfileSettings profile = new CustomProfileSettings();

profile.CameraHint = ...;
profile.FPSHint = ...;
profile.ResolutionHint = ...;
profile.CornerRefinement = ...;
profile.AnalysisInterval = ...;
profile.UseEdgeRefinement = ...;

detectorSettings.CustomProfileSettings = profile;

detectorSettings.MarkerType = MarkerType.AprilTag;
markerFeature.CreateMarkerDetector(detectorSettings);

Now I try to make apriltag larger in order to increase accuracy, but I recently realized another more important critical problem. When marker understanding is enabled, after several minutes passed, tracking stops first, application works for a few seconds more and after a few seconds glasses reboot itself. This happens all the time, if I stop marker tracking, nothing crashes until battery finished. This makes impossible to use marker understanding, and this strictly needs to be solved in order to let us use in surgery.

Hi @cagatay,

Are you able to reproduce this issue using the issue in the Magic Leap Unity Example Project? If so, which version of the project did you use.

I cannot make official Magic Leap Examples project work in my computer. Unity editors (both 2022 and 2023 editors) crash after several seconds when I open Magic Leap Examples (never this happens with any other projects so far). I don't know why. So I just look at their source code.

When I use AprilTag marker tracking Magic Leap Reboots itself after several minutes. So I am trying to use Vuforia instead of AprilTag marker tracker to avoid reboot.
Indead Magic Leap reboots itself sometimes even I dont use ML marker tracker and use Vuforia. But this happens less frequent with Vuforia.

Unfortunately we will not be able to help if we are unable to reproduce the issue. Could you make sure that the Unity Editor Version matches the Editor Version for the Magic Leap Examples? If you find your Editor crashing, you may need to reach out on the Unity Forums.

Additionally, please make sure your Magic Leap 2 is up to date and that you are using the latest Unity Examples Project that can be downloaded from the Magic Leap Hub 3. Use an unmodified version of the Example Project (do not include additional packages such as Vuforia)