资源简介

使用VFW进行摄像头调用,可以完成基本功能,可调用电脑内置摄像头,实现视频监控,C#语言编写的,适合人脸身份采集和安防工程。

资源截图

代码片段和文件信息

using System;
using System.Drawing;
using System.Drawing.Imaging;


namespace SevenZ.ImageProcessing
{
   public class Filters
   {
      //Gilles Khouzams colour corrected grayscale shear
      static ColorMatrix cm = new ColorMatrix(new float[][]{   
                                   new float[]{0.3f  0.3f 0.3f  0  0}
                                   new float[]{0.59f0.59f0.59f  0  0}
                                   new float[]{0.11f0.11f0.11f  0  0}
                                   new float[]{0  0    0    1  0  0}
                                   new float[]{0  0    0    0  1  0}
                                   new float[]{0  0    0    0  0  1}});

      public static Image ToGrayScale(Image img)
      {
         //BobPow

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2007-09-12 20:16  ImageProcessing\
     文件        3501  2007-09-12 20:07  ImageProcessing\Filters.cs
     文件        2041  2007-09-12 20:11  ImageProcessing\ImageProcessing.csproj
     目录           0  2007-09-12 20:12  ImageProcessing\Properties\
     文件        1401  2007-08-22 12:54  ImageProcessing\Properties\AssemblyInfo.cs
     目录           0  2007-09-12 20:16  WebCam\
     文件        2175  2007-09-12 00:55  WebCam\FormMain.cs
     文件        4630  2007-09-12 00:54  WebCam\FormMain.Designer.cs
     文件        5814  2007-09-12 00:54  WebCam\FormMain.resx
     文件         361  2007-09-09 10:48  WebCam\Program.cs
     目录           0  2007-09-12 20:12  WebCam\Properties\
     文件        1282  2007-07-27 15:13  WebCam\Properties\AssemblyInfo.cs
     文件        2851  2007-08-22 12:55  WebCam\Properties\Resources.Designer.cs
     文件        5874  2007-07-27 15:13  WebCam\Properties\Resources.resx
     文件        1092  2007-08-22 12:55  WebCam\Properties\Settings.Designer.cs
     文件         249  2007-07-27 15:13  WebCam\Properties\Settings.settings
     文件        3800  2007-09-12 20:11  WebCam\WebCam.csproj
     目录           0  2007-09-12 20:16  WebCamera\
     目录           0  2007-09-12 20:13  WebCamera\Properties\
     文件        1409  2007-08-05 22:03  WebCamera\Properties\AssemblyInfo.cs
     文件        2252  2007-09-12 20:11  WebCamera\WebCamera.csproj
     文件         168  2007-08-22 00:18  WebCamera\WebCamera.csproj.user
     文件        8648  2007-09-12 20:08  WebCamera\WebCameraDevice.cs
     文件        1554  2007-09-10 00:34  WebCamera\WebCameraDeviceManager.cs
     文件        2337  2007-09-07 10:59  WebCam.sln

评论

共有 条评论