Esempio n. 1
0
    IEnumerator Start()
    {
        //加载本地的一张美女图片
        //string filePath = "file://" + Application.dataPath + @"/lady.jpg";
        string filePath = "file://" + Application.dataPath + @"/man.jpg";
        WWW www = new WWW(filePath);
        yield return www ;
        _tex = www.texture;

        //进行人脸识别算法
        CV2FaceDectect cv2 = new CV2FaceDectect();
        StartCoroutine (cv2.IRequestJPG(_tex,Result));
    }
Esempio n. 2
0
    IEnumerator Start()
    {
        //加载本地的一张美女图片
        //string filePath = "file://" + Application.dataPath + @"/lady.jpg";
        string filePath = "file://" + Application.dataPath + @"/man.jpg";
        WWW    www      = new WWW(filePath);

        yield return(www);

        _tex = www.texture;

        //进行人脸识别算法
        CV2FaceDectect cv2 = new CV2FaceDectect();

        StartCoroutine(cv2.IRequestJPG(_tex, Result));
    }