base functional

This commit is contained in:
2023-05-31 19:55:14 +05:00
parent b64e2bf87f
commit ff741fa41a
55 changed files with 4885 additions and 1007 deletions
+3 -1
View File
@@ -79,7 +79,6 @@ namespace UltraFace
_previewUI.texture = _source.Texture;
if(!_detectionSetup.isValidate) return;
Debug.Log(_detectedCounter.Count);
_detectedCounter.Add(maxFaceHeight > _detectionSetup.minFaceHeight ? true : false);
if(_detectedCounter.Count == 128)
@@ -101,6 +100,9 @@ namespace UltraFace
OnDetectionStatusChanged?.Invoke(_isDetected);
_detectedCounter = new List<bool>();
}
if(Input.GetKeyDown(KeyCode.Space))
OnDetectionStatusChanged?.Invoke(!_isDetected);
}
void OnRenderObject()