示例#1
0
    /// <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);
    }
示例#2
0
 private void Awake()
 {
     camHandle = GetComponentInChildren <WebcamHandle>();
     tracker   = GetComponentInChildren <OpenCVBlobTracker>();
 }