/// <summary>
 /// Initializes a new instance of the <see cref="PikkartAR.DataProvider"/> class.
 /// </summary>
 /// <param name="cloudRecognitionServiceListener">Cloud recognition service listener.</param>
 /// <param name="localRecognitionService">Local recognition service.</param>
 /// <param name="deviceId">Device identifier.</param>
 public RecognitionDataProvider(CloudRecognitionInfo authInfo,
                                IRecognitionDataProviderListener recognitionDataProviderListener, string deviceId)
 {
     _nativeArray             = Marshal.AllocHGlobal(Constants.CAMERA_REQUESTED_WIDTH * Constants.CAMERA_REQUESTED_HEIGHT * 3);
     _dataProviderListener    = recognitionDataProviderListener;
     _localRecognitionService = new LocalRecognitionService();
     _cloudRecognitionService = new CloudRecognitionService(authInfo, deviceId);
     _cachedMarker            = null;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PikkartAR.CloudRecognitionService"/> class.
 /// </summary>
 /// <param name="dataProvider">Data provider.</param>
 /// <param name="deviceId">Device identifier.</param>
 public CloudRecognitionService(CloudRecognitionInfo cloudInfo, string deviceId)
 {
     _cloudInfo = cloudInfo;
     _deviceId  = deviceId;
 }