Surface Tracking + Image Tracking

0 votes
asked Dec 2 by yanlam (120 points)

How to do surface tracking and image tracking together? I was trying to combine surface tracking and image tracking sample scene but I got this error.

04.47.50.534340 : [EasyAR]Error: CameraDevice::requestPermissions callback: St13runtime_error
System.ArgumentNullException: Argument cannot be null.
  at easyar.Detail.Object_from_c[InputFrameSource] (IntPtr ptr, System.Func`2 typeNameGetter) [0x00012] in /Users/mayanlam/Projects/temp/easy-ar-basic/Assets/EasyAR/Scripts/csapi.cs:1835 
  at easyar.InputFrameFork.output (Int32 index) [0x0003e] in /Users/mayanlam/Projects/temp/easy-ar-basic/Assets/EasyAR/Scripts/csapi.cs:5945 
  at easyar.ARSession.Init () [0x00265] in /Users/mayanlam/Projects/temp/easy-ar-basic/Assets/EasyAR/Scripts/ARSession.cs:146 
  at easyar.ARSession.<Awake>m__0 (PermissionStatus status, System.String msg) [0x00009] in /Users/mayanlam/Projects/temp/easy-ar-basic/Assets/EasyAR/Scripts/ARSession.cs:75 
  at easyar.Detail.FunctorOfVoidFromPermissionStatusAndString_func (IntPtr state, PermissionStatus arg0, IntPtr arg1, System.IntPtr& exception) [0x0003e] in /Users/mayanlam/Projects/temp/easy-ar-basic/Assets/EasyAR/Scripts/csapi.cs:2497 

UnityEngine.Debug:LogError(Object)
Debug:LogError(Object) (at Assets/Scripts/Debug.cs:19)
easyar.EasyARBehaviour:<GlobalInitialization>m__0(LogLevel, String) (at Assets/EasyAR/Scripts/EasyARBehaviour.cs:66)
easyar.Detail:FunctorOfVoidFromLogLevelAndString_func(IntPtr, LogLevel, IntPtr, IntPtr&) (at Assets/EasyAR/Scripts/csapi.cs:2991)
easyar.Detail:easyar_DelayedCallbackScheduler_runOne(IntPtr)
easyar.DelayedCallbackScheduler:runOne() (at Assets/EasyAR/Scripts/csapi.cs:5332)
easyar.EasyARBehaviour:Update() (at Assets/EasyAR/Scripts/EasyARBehaviour.cs:111)

1 Answer

0 votes
answered Dec 6 by zhnagjian (10,380 points)
Hello,

At present, we do not have related documents to guide you, and we will optimize our documents later.
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...