public CustomVisionObjectDetectionService(string name, uint priority, BaseMixedRealityProfile profile) : base(name, priority, profile) { if (profile == null) { throw new ArgumentNullException(nameof(profile)); } ObjectDetectionServiceProfile serviceProfile = profile as ObjectDetectionServiceProfile; if (serviceProfile == null) { throw new ArgumentNullException(nameof(serviceProfile)); } _objectDetectionServiceProfile = serviceProfile; _logger = new Logger(new LogHandler()); Assert.IsNotNull(_logger, "_logger != null"); if (_objectDetectionServiceProfile.useLocalModel) { _objectDetector = new CustomVisionLocal(_objectDetectionServiceProfile.modelFile, _objectDetectionServiceProfile.labels, 10, 0.5f); } else { _objectDetector = new CustomVision(_objectDetectionServiceProfile.predictionApi, _objectDetectionServiceProfile.predictionKey); } }
public WelcomePage() { InitializeComponent(); Title = "Welcome"; BindingContext = this; Task.Run(AnimateBackground); _objectDetector = DependencyService.Get <IObjectDetector>(); }
public Vket5RuleSetBase() : base() { officialPrefabsDetector = new PrefabPartsDetector( Vket5OfficialAssetData.AudioSourcePrefabGUIDs, Vket5OfficialAssetData.AvatarPedestalPrefabGUIDs, Vket5OfficialAssetData.ChairPrefabGUIDs, Vket5OfficialAssetData.PickupObjectSyncPrefabGUIDs, Vket5OfficialAssetData.CanvasPrefabGUIDs, Vket5OfficialAssetData.PointLightProbeGUIDs); }
public VRCUdonSampleRuleSet() : base() { officialPrefabsDetector = new PrefabPartsDetector( VRCUdonSampleOfficialAssetData.AudioSourcePrefabGUIDs, VRCUdonSampleOfficialAssetData.AvatarPedestalPrefabGUIDs, VRCUdonSampleOfficialAssetData.PickupObjectSyncPrefabGUIDs, VRCUdonSampleOfficialAssetData.CanvasPrefabGUIDs, VRCUdonSampleOfficialAssetData.PointLightProbeGUIDs, VRCUdonSampleOfficialAssetData.UdonBehaviourPrefabGUIDs); }
// Use this for initialization void Start() { _colorCameraObject = ColorCameraInject(); _depthCameraObject = DepthCameraInject(); _objectDetector = ObjectDetectorInject(); _dataViewPanelManager = gameObject.GetComponent <DataViewPanelManager>(); if (RealTimeDetection) { StartCoroutine(TakePhotoCoroutine()); } else { InputManager.Instance.AddGlobalListener(gameObject); } }
// Use this for initialization void Start() { _colorCameraObject = InjectColorCamera(); //_depthCameraObject = InjectDepthCamera(); _objectDetector = ObjectDetectorInject(); _foodDataViewManager = gameObject.GetComponent <FoodDataViewManager>(); if (RealTimeDetection) { StartCoroutine(TakePhotoCoroutine()); } else { InputManager.Instance.AddGlobalListener(gameObject); } CalorieCalculater.Initialize(); }
public AnimatorComponentRule(string name, Type[] mustUseSeparatelyComponents, IObjectDetector ignoredPrefabDetector = null) : base(name) { this.mustUseSeparatelyComponents = mustUseSeparatelyComponents; this.ignoredPrefabDetector = ignoredPrefabDetector ?? new DefaultObjectDetector(); }
public CameraDetectionController(IObjectDetector detector, IOptions <SourceOptions> options) { _detector = detector; _options = options; }
public AnimationComponentRule(string name, IObjectDetector ignoredPrefabDetector = null) : base(name) { this.ignoredPrefabDetector = ignoredPrefabDetector ?? new DefaultObjectDetector(); }