/****/ /******************************************************************************************************/ /******************************************************************************************************/ #region Public ************************************************************************************************/ /******************************************************************************************************/ /******************************************************************************************************/ /// <summary> /// Initiates Abstract layer. Return false if already Init; /// </summary> public bool InitAbstractLayer(ref OpenCVBlobTracker _tracker) { if (tracker == null) { tracker = _tracker; trackerBlobs = tracker.trackedBlobs; trackedBlobsCount = tracker.BlobsPerPanels; camCount = trackedBlobsCount.Length; blobs = new BlobData[tracker.CVParams.maxBlobCount]; abstractionRoutine = new Coroutine[camCount]; absRunning = new bool[camCount]; doneCompute = new bool[camCount]; return(true); } return(false); }
private void Awake() { camHandle = GetComponentInChildren <WebcamHandle>(); tracker = GetComponentInChildren <OpenCVBlobTracker>(); }