Ver Fonte

changed tuio server ip

Alexander Hendrich há 10 anos atrás
pai
commit
871e4dad1c

+ 2 - 2
bbiwarg/Constants.cs

@@ -12,7 +12,7 @@ namespace bbiwarg
     class Constants
     {
         // Logger
-        public static readonly LogSubject LogLevel = LogSubject.TouchEvents;
+        public static readonly LogSubject LogLevel = LogSubject.TUIOServer;
             //LogSubject.Timer;
         
         // Output
@@ -21,7 +21,7 @@ namespace bbiwarg
         public static readonly float OutputScaleFactor = 1f; // output window size is scaled by this factor (from necessary size for images)
         
         // TUIO
-        public static readonly String TuioIP = "127.0.0.1";
+        public static readonly String TuioIP = "172.20.10.6";
         public static readonly int TuioPort = 3333;
 
         // image

+ 1 - 1
bbiwarg/MainBBWIWARG.cs

@@ -12,7 +12,7 @@ namespace bbiwarg
     {
         static void Main(string[] args)
         {
-            IInputProvider inputProvider = new IisuInputProvider("..\\..\\videos\\touch\\4.skv");
+            IInputProvider inputProvider = new IisuInputProvider();//"..\\..\\videos\\touch\\4.skv");
             VideoHandle videoHandle = new VideoHandle(inputProvider);
             videoHandle.start();
 

+ 1 - 1
bbiwarg/Recognition/TouchRecognition/TouchEvent.cs

@@ -37,7 +37,7 @@ namespace bbiwarg.Recognition.TouchRecognition
             TouchEvent compareTouchEvent = (TouchEvent)compareObject;
 
             //finger similarity
-            float fingerSimilarity = (Finger.TrackID == compareTouchEvent.Finger.TrackID) ? 1 : 0.5f;
+            float fingerSimilarity = (Finger.TrackID == compareTouchEvent.Finger.TrackID) ? 1 : 0;
 
             //position similarity
             float distance = Position.getDistanceTo(compareTouchEvent.Position);