Surface Tracking + Image Tracking

0 votes
asked Dec 2, 2019 by yanlam (200 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)

2 Answers

–3 votes
answered Dec 6, 2019 by zhnagjian (11,130 points)
Hello,

At present, we do not have related documents to guide you, and we will optimize our documents later.
0 votes
answered Jan 13, 2020 by easyarguxin (960 points)
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...