Преглед на файлове

添加一个半自动判断

slambb преди 11 месеца
родител
ревизия
f72f3fe8d6
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      Assets/InfraredProject/WebCamera/Script/ZIM/ScreenLocate.cs

+ 5 - 2
Assets/InfraredProject/WebCamera/Script/ZIM/ScreenLocate.cs

@@ -841,7 +841,9 @@ public partial class ScreenLocate : MonoBehaviour
             mUVCCameraInfo.SetSize(webCam.webCamTexture.width, webCam.webCamTexture.height);
         }
     }
-
+    /// <summary>
+    /// 屏幕识别结束
+    /// </summary>
     public void OnLocateScreenEnd()
     {
         bAutomaticRecognitionEnd = true;
@@ -856,7 +858,8 @@ public partial class ScreenLocate : MonoBehaviour
             mUVCCameraInfo.SetSize(webCam.webCamTexture.width, webCam.webCamTexture.height);
         }
 
-        if (screenIdentification.QuadAuto == null)
+        //识别结束后,也要判断半自动数据,即P5?
+        if (screenIdentification.QuadAuto == null && screenIdentification.QuadSemiAuto == null)
         {
             InfraredCameraHelper?.InvokeOnUVCPosUpdate(new List<Vector2>());
             Debug.LogError("[ScreenLocate] OnLocateScreenEnd  屏幕未识别");