Plane Detection and Image Tracking in Unity

0 votes
asked Sep 1 by wjrivera (840 points)

I am working on a Unity project where I am trying to use Plane Detection and Image Tracking simultaneously with EasyAR.

Both features work correctly when tested independently. When I combine them, the application initially works as expected: the camera starts, planes are detected, and image targets can be tracked.

However, after running for some time, EasyAR stops the AR session and displays the following errors:

Unable to start AR Session (EasyAR) (easyar.ARSession) before EasyAR Sense is ready (license invalid)

and:

Running Failed: EasyAR Sense (Android-arm64) Custom Camera timed out for current process due to use of a limited license or a trial version of Mega service.

This makes me think that my current implementation is causing EasyAR to use a Custom Camera, even though I am not intentionally implementing a custom camera.

1 Answer

0 votes
answered Sep 1 by kenn (19,890 points)
Custom camera is defined in EasyAR Sense native SDK, so in Unity:
Different from external frame sources, custom cameras are not necessarily provided externally; some built-in frame sources are also custom cameras.

For details:

https://www.easyar.com/doc/en/develop/unity/cameras/frame-source.html
commented Sep 1 by wjrivera (840 points)

Thank you for the clarification.

I understand now that a Custom Camera does not necessarily mean that I am providing an external camera, and that some built-in Frame Sources can also be classified as Custom Cameras.

In my case, I am trying to combine Plane Detection and Image Tracking in the same Unity application.

Could you please clarify which Frame Source is expected to be used for this configuration?

In particular:

  1. Does EasyAR Plane Detection require ARCoreARFoundationFrameSource (or another Frame Source classified as a Custom Camera) when running on Android?
  2. If so, does this mean that combining Plane Detection with Image Tracking necessarily requires a license that supports Custom Camera?
  3. If there is a way to use Plane Detection and Image Tracking simultaneously using a non-Custom-Camera Frame Source, could you point me to the recommended configuration or sample?
  4. In my current setup, how can I determine which Frame Source EasyAR actually selected at runtime?

The important point for me is to determine whether the Custom Camera timeout is an unavoidable licensing requirement for this configuration, or whether my current scene configuration is selecting the wrong Frame Source.

Thank you.

commented Sep 8 by kenn (19,890 points)
The custom camera feature is available at no additional cost. However, a paid license is still required for any use beyond testing, even if you do not use the custom camera feature.

For runtime frame source selection, you can reference https://www.easyar.com/doc/en/develop/unity/cameras/frame-source.html
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...