/// <summary> /// Tries to link with webcam's Color32 arrays. Return false if webcams not ready; /// </summary> public bool GrabWebcamsReferences(ref WebcamHandle _wchandle) { if (WCHandle == null) { WCHandle = _wchandle; } if (!color32Connected) { if (!LinkWithColor32()) { return(false); } InitVariables(); color32Connected = true; return(true); } return(false); }
private void Awake() { camHandle = GetComponentInChildren <WebcamHandle>(); tracker = GetComponentInChildren <OpenCVBlobTracker>(); }