• 大小: 3.09MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: 其他
  • 标签: unity  人脸识别  

资源简介

该项目是unity3d结合百度AI来实现的人脸识别的Demo,包含人脸注册以及识别验证。

资源截图

代码片段和文件信息

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class CallCamera : MonoBehaviour
{
   
    [HideInInspector]
    public WebCamTexture webTex;
    [HideInInspector]
    public string deviceName;
    //现实摄像头画面
    public RawImage rawImage;
 
    // Use this for initialization
    void Start ()
    {
        StartCoroutine(IECallCamera());
}

    IEnumerator IECallCamera()
    {
        yield return Application.RequestUserAuthorization(UserAuthorization.WebCam);
        if (Application.HasUserAuthorization(UserAuthorization.WebCam))
        {
            WebCamDevice[] devices = WebCamTexture.devices;
            deviceName = devices[0].name;
            //设置摄像机摄像的区域    
            webTex = new WebCamTexture(deviceName 1920 1080 20);
            webTex.Play();//开始摄像    
            rawImage.texture = webTex;
           
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-29 13:55  人脸对比\
     目录           0  2018-06-29 09:53  人脸对比\.vs\
     目录           0  2018-06-29 11:56  人脸对比\.vs\人脸对比\
     目录           0  2018-06-29 11:56  人脸对比\.vs\人脸对比\DesignTimeBuild\
     文件         132  2018-06-29 11:56  人脸对比\.vs\人脸对比\DesignTimeBuild\.dtbcache
     目录           0  2018-06-29 11:56  人脸对比\.vs\人脸对比\v15\
     文件      145408  2018-08-29 13:55  人脸对比\.vs\人脸对比\v15\.suo
     目录           0  2018-06-29 09:53  人脸对比\.vs\人脸对比\v15\Server\
     目录           0  2018-06-29 09:53  人脸对比\.vs\人脸对比\v15\Server\sqlite3\
     文件           0  2018-06-29 09:53  人脸对比\.vs\人脸对比\v15\Server\sqlite3\db.lock
     文件     1363968  2018-08-29 13:01  人脸对比\.vs\人脸对比\v15\Server\sqlite3\storage.ide
     文件       32768  2018-08-29 11:11  人脸对比\.vs\人脸对比\v15\Server\sqlite3\storage.ide-shm
     文件     4124152  2018-08-29 13:55  人脸对比\.vs\人脸对比\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-06-29 10:05  人脸对比\Assets\
     目录           0  2018-06-29 09:45  人脸对比\Assets\Plugins\
     文件         192  2018-06-29 09:44  人脸对比\Assets\Plugins.meta
     文件       65024  2018-05-10 13:31  人脸对比\Assets\Plugins\AipSdk.dll
     文件         653  2018-06-29 09:45  人脸对比\Assets\Plugins\AipSdk.dll.meta
     文件      460800  2018-05-10 13:31  人脸对比\Assets\Plugins\Newtonsoft.Json.dll
     文件         653  2018-06-29 09:45  人脸对比\Assets\Plugins\Newtonsoft.Json.dll.meta
     目录           0  2018-08-29 11:39  人脸对比\Assets\StreamingAssets\
     文件         192  2018-06-29 10:05  人脸对比\Assets\StreamingAssets.meta
     目录           0  2018-08-29 11:50  人脸对比\Assets\StreamingAssets\CameraFaceDetect\
     文件         214  2018-08-29 11:39  人脸对比\Assets\StreamingAssets\CameraFaceDetect.meta
     文件      119587  2018-08-29 13:52  人脸对比\Assets\StreamingAssets\CameraFaceDetect\CameraFace.jpg
     文件         197  2018-08-29 11:50  人脸对比\Assets\StreamingAssets\CameraFaceDetect\CameraFace.jpg.meta
     目录           0  2018-06-29 11:38  人脸对比\Assets\StreamingAssets\FaceDetect\
     文件         192  2018-06-29 11:32  人脸对比\Assets\StreamingAssets\FaceDetect.meta
     文件      174831  2018-06-29 11:38  人脸对比\Assets\StreamingAssets\FaceDetect\001.jpg
     文件         175  2018-06-29 11:38  人脸对比\Assets\StreamingAssets\FaceDetect\001.jpg.meta
     目录           0  2018-06-29 11:32  人脸对比\Assets\StreamingAssets\FaceUpLoad\
............此处省略682个文件信息

评论

共有 条评论