ソースを参照

添加一个半自动判断

slambb 11 ヶ月 前
コミット
f72f3fe8d6

+ 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  屏幕未识别");