base functional
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user