/// <summary> /// Constructor Initializes Iisu and loads the input movie /// </summary> /// <param name="skvMoviePath">skv movie path</param> /// <exception cref="System.Exception"> /// Can occur when Iisu cannot be properly initialized /// or when the input path is not valid. /// </exception> public IisuWrapper() { // We need to specify where is located the iisu dll and its configuration file. // in this sample we'll use the SDK's environment variable as resource to locate them // but you can use any mean you need. string libraryLocation = System.Environment.GetEnvironmentVariable("IISU_SDK_DIR"); IHandleConfiguration config = Iisu.Iisu.Context.CreateHandleConfiguration(); <<<<<<< HEAD ======= >>>>>>> b8e918927be2a4af4732581fe5ad6d829df34356 config.IisuBinDir = (libraryLocation + "/bin"); config.ConfigFileName = "iisu_config.xml"; // get iisu handle _iisuHandle = Iisu.Iisu.Context.CreateHandle(config); // create iisu device _device = _iisuHandle.InitializeDevice(); // check if Mode DS325 is Enable string isCiEnabledString = ""; _iisuHandle.GetConfigString("//CONFIG//PROCESSING//CI", out isCiEnabledString); bool isCiEnabled = isCiEnabledString.Equals("1"); if (isCiEnabled != true) { Console.WriteLine("Hand Control will not be Ok"); } //Envoi du fichier coincoin.iid dans le le moteur IIsi _device.CommandManager.SendCommand("IID.loadGraph", Directory.GetCurrentDirectory() + "\\coincoin.iid"); // register even listener _device.EventManager.RegisterEventListener("SYSTEM.Error", new OnErrorDelegate(onError)); _Hand1Status = _device.RegisterDataHandle<int>("CI.HAND1.Status"); _Hand1PosingGestureId = _device.RegisterDataHandle<int>("CI.HAND1.PosingGestureId"); _Hand1PalmPosition = _device.RegisterDataHandle<Iisu.Data.Vector3>("CI.HAND1.PalmPosition3D"); // enregistrement du la reconnaissance CoinCoin _coincoin = _device.RegisterDataHandle<bool>("IID.Script.CoinCoin"); _imetaInfo = _device.EventManager.GetMetaInfo("CI.HandPosingGesture"); _device.Start(); }