• 大小: 51.88MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2022-11-08
  • 语言: 其他
  • 标签:

资源简介

人脸追踪,识别

资源截图

代码片段和文件信息

using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;

public class Test : MonoBehaviour {
    public Gameobject m_tSprite;
    // Use this for initialization
    void Start () {
       StartCoroutine(load(“http://tva1.sinaimg.cn/crop.0.0.180.180.180/92e8f9f9jw1e8qgp5bmzyj2050050aa8.jpg“));
    }
IEnumerator load(string url)
    {
        WWW www = new WWW(url);
        yield return www;
        if (www.error!=null)
        {
            Debug.LogError(www.error);
        }
        Debug.Log(www.responseHeaders[“CONTENT-TYPE“]);
        //Texture2D texture2D = www.texture;
        //byte[] bytes = texture2D.EncodeToPNG();
        //File.WriteAllBytes(Application.streamingAssetsPath+“//text.jpg“ bytes);
        //Sprite tempSp = Sprite.Create(texture2D new Rect(0 0 texture2D.width texture2D.height) new Vector2(0 0));
        //m_tSprite.GetComponent().sprite = tempSp;
        //Debug.Log(“加载完成“);
    }
    // Update is called once per frame
    void Update () {

}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-17 09:55  OpenCvSharp\
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\
     文件           3  2016-06-06 20:55  OpenCvSharp\.svn\entries
     文件           3  2016-06-06 20:55  OpenCvSharp\.svn\format
     目录           0  2016-06-10 23:51  OpenCvSharp\.svn\pristine\
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\01\
     文件        1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\01\0175744f9bdfaa7d709f09cc1f9920fe12e4f98f.svn-base
     文件      341406  2016-06-06 20:55  OpenCvSharp\.svn\pristine\01\01c1a4b4950f5a00a4a85838664d1d02cca535a3.svn-base
     文件      122350  2016-06-06 20:55  OpenCvSharp\.svn\pristine\01\01ecafc758041d90fa201f9ebfffafc423b67ec3.svn-base
     目录           0  2016-06-06 20:55  OpenCvSharp\.svn\pristine\02\
     文件         174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\02\02225e694e70e2fa6533aee9a3d3229534382350.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\06\
     文件        4308  2016-06-06 20:55  OpenCvSharp\.svn\pristine\06\068e81aeeb001b61a890b4b044588b69966b0fdf.svn-base
     文件         191  2016-06-06 20:55  OpenCvSharp\.svn\pristine\06\06e66f0d21fd5838b32cc2eaedc12d474abdda2a.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\08\
     文件        1397  2016-06-06 20:55  OpenCvSharp\.svn\pristine\08\086c4290af72912e3b61471aa44666b1d4ad85c0.svn-base
     文件        1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\08\08fc794c5d9ffe23d5b03ed7cfe0df831fb539d3.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\09\
     文件       21504  2016-06-10 23:51  OpenCvSharp\.svn\pristine\09\090d8028e110fe26392f0f5f856657a7ac7687a8.svn-base
     文件         174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\09\0947e1bb175627dafd0a9a00b19f0f59b334cf9f.svn-base
     文件      395320  2016-06-06 20:55  OpenCvSharp\.svn\pristine\09\0987f1e2acbfa7aa0b742a9999f1b86a62d658d2.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\0e\
     文件       75482  2016-06-06 20:55  OpenCvSharp\.svn\pristine\0e\0e919752b70e0d7c6830387b1eadd0f4e4f8fa81.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\0f\
     文件      195369  2016-06-06 20:55  OpenCvSharp\.svn\pristine\0f\0f5e99210d09b99d383bdfab84c43020a4df10e6.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\10\
     文件        4132  2016-06-10 23:51  OpenCvSharp\.svn\pristine\10\10c87aa153f8f5b668f8554c6a5f23e5d9068318.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\12\
     文件      676709  2016-06-06 20:55  OpenCvSharp\.svn\pristine\12\1246a90d1f7d2d522aea89e93ed0fa8a38d993a3.svn-base
     目录           0  2017-04-06 15:06  OpenCvSharp\.svn\pristine\14\
     文件        1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\14\14a88b15007607fe05fbbe3997b65d5ec916fa03.svn-base
............此处省略5101个文件信息

评论

共有 条评论

相关资源