/// <summary> /// Starts the process of segmentation. Initialises a new segmentation manager /// with the average colors from colorspace. /// </summary> public void Calibrate() { // Reset manager. segmentationManager = new SegmentationManager(colorSpace.GetColorsInSpace(cameraTexture.GetWebCamTexture())); // Change output. onChanged = true; }
public void FingerRecognitionTest() { successfulFrames = 0; frames = 0; manager = outputImage.GetSegmentationManagerForTesting(); StartCoroutine(StartTimer(timerValue)); startTimer = true; }
private void Awake() { if (_instance == null) { _instance = this; } if (_instance != this) { DestroyImmediate(gameObject); } }