• 大小: 32.90M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签:

资源简介

在OpenCV基础上,完成了Unity脸部识别及自动选取最佳截图

资源截图

代码片段和文件信息

using UnityEngine;
using System.Collections;
using OpenCvSharp;

public class Test : MonoBehaviour
{
    Texture2D t = null;
    // Use this for initialization
    void Start()
    {
        t = new Texture2D(200 200 TextureFormat.RGB565 false);
        //Mat src = new Mat(Application.streamingAssetsPath + “/1.png“ ImreadModes.LoadGdal);   // OpenCvSharp 3.x
        //Mat src = new Mat(“lenna.png“ LoadMode.GrayScale); // OpenCvSharp 2.4.x
        //Mat dst = new Mat();
        //Cv2.Canny(src dst 50 200);
        //byte[] bs = dst.ToBytes(“.png“);
        //t.LoadImage(bs);
        //t.Apply();


        // Load the cascades
        var haarCascade = new CascadeClassifier(Application.streamingAssetsPath + “/haarcascades/haarcascade_frontalface_alt2.xml“);
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    I.A....         3  2016-06-06 20:55  OpenCvSharp\.svn\entries

    I.A....         3  2016-06-06 20:55  OpenCvSharp\.svn\format

    I.A...R      1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\01\0175744f9bdfaa7d709f09cc1f9920fe12e4f98f.svn-base

    I.A...R    341406  2016-06-06 20:55  OpenCvSharp\.svn\pristine\01\01c1a4b4950f5a00a4a85838664d1d02cca535a3.svn-base

    I.A...R    122350  2016-06-06 20:55  OpenCvSharp\.svn\pristine\01\01ecafc758041d90fa201f9ebfffafc423b67ec3.svn-base

    I.A...R       174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\02\02225e694e70e2fa6533aee9a3d3229534382350.svn-base

    I.A...R      4308  2016-06-06 20:55  OpenCvSharp\.svn\pristine\06\068e81aeeb001b61a890b4b044588b69966b0fdf.svn-base

    I.A...R       191  2016-06-06 20:55  OpenCvSharp\.svn\pristine\06\06e66f0d21fd5838b32cc2eaedc12d474abdda2a.svn-base

    I.A...R      1397  2016-06-06 20:55  OpenCvSharp\.svn\pristine\08\086c4290af72912e3b61471aa44666b1d4ad85c0.svn-base

    I.A...R      1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\08\08fc794c5d9ffe23d5b03ed7cfe0df831fb539d3.svn-base

    I.A...R     21504  2016-06-10 23:51  OpenCvSharp\.svn\pristine\09\090d8028e110fe26392f0f5f856657a7ac7687a8.svn-base

    I.A...R       174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\09\0947e1bb175627dafd0a9a00b19f0f59b334cf9f.svn-base

    I.A...R    395320  2016-06-06 20:55  OpenCvSharp\.svn\pristine\09\0987f1e2acbfa7aa0b742a9999f1b86a62d658d2.svn-base

    I.A...R     75482  2016-06-06 20:55  OpenCvSharp\.svn\pristine\0e\0e919752b70e0d7c6830387b1eadd0f4e4f8fa81.svn-base

    I.A...R    195369  2016-06-06 20:55  OpenCvSharp\.svn\pristine\0f\0f5e99210d09b99d383bdfab84c43020a4df10e6.svn-base

    I.A...R      4132  2016-06-10 23:51  OpenCvSharp\.svn\pristine\10\10c87aa153f8f5b668f8554c6a5f23e5d9068318.svn-base

    I.A...R    676709  2016-06-06 20:55  OpenCvSharp\.svn\pristine\12\1246a90d1f7d2d522aea89e93ed0fa8a38d993a3.svn-base

    I.A...R      1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\14\14a88b15007607fe05fbbe3997b65d5ec916fa03.svn-base

    I.A...R      4104  2016-06-06 20:55  OpenCvSharp\.svn\pristine\15\1536c4be7a1d7918d2d6ae0a63012bab94102acb.svn-base

    I.A...R     38805  2016-06-10 23:51  OpenCvSharp\.svn\pristine\16\163ee0500d0baf6862fa7f055f6005365bc2a1f0.svn-base

    I.A...R     47027  2016-06-06 20:55  OpenCvSharp\.svn\pristine\19\197dbd142b394e17e4fc92054da89fa5aec04aec.svn-base

    I.A...R      1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\1d\1d533cfb6c416398902812f8852dd4dc9a4e758f.svn-base

    I.A...R    815616  2016-06-06 20:55  OpenCvSharp\.svn\pristine\1e\1e49b077b2eabff9c38bf50648a1b75fb337993e.svn-base

    I.A...R      1399  2016-06-06 20:55  OpenCvSharp\.svn\pristine\24\24b3c6e45b752327084a621c7d73698a79884dcc.svn-base

    I.A...R      6534  2016-06-10 23:51  OpenCvSharp\.svn\pristine\25\25a7bc95e56f8b29ae2c83ac1e7bacb619837c6e.svn-base

    I.A...R       174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\29\2925c6d8d30d51d0ca05fa0af59731073aa6688c.svn-base

    I.A...R     47015  2016-06-06 20:55  OpenCvSharp\.svn\pristine\29\29f5e006c7440afc1666f92cd4eed0ab5994c1a1.svn-base

    I.A...R      1514  2016-06-10 23:51  OpenCvSharp\.svn\pristine\2e\2edca7fecf54001430542e19914e0c2115cfc0bb.svn-base

    I.A...R       177  2016-06-06 20:55  OpenCvSharp\.svn\pristine\2f\2f9c6dd8dbb7c903ef766b0e7b7cac42f73d2ef3.svn-base

    I.A...R       174  2016-06-06 20:55  OpenCvSharp\.svn\pristine\33\3304ed98867e97c546ef411b0776bc954547a3fe.svn-base

............此处省略314个文件信息

评论

共有 条评论