资源简介
Emgu.CV 打开视频与人脸检测,可以运行,Emgu.CV应用3.4.0,BIN中有相关DLL,打开视频方法:USB,RTSP,HTTP取图片,本地录像。打开视频方法切换时先停止上一次打开。打开视频后分析检测视频中人脸
代码片段和文件信息
using Emgu.CV;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
private Mat curframe;
private WebClientExt webClient;
private VideoCapture videoCapture;
private KingFaceDetect m_KingFaceDetect;
public Form1()
{
m_KingFaceDetect = new KingFaceDetect();
InitializeComponent();
}
private void button1_Click(object sender EventArgs e)
{
videoCapture = new VideoCapture(0);
videoCapture.ImageGrabbed += Processframe;
videoCapture.Start();
}
private void Processframe(object sender EventArgs arg)
{
try
{
videoCapture.ImageGrabbed -= Processframe;
//if (videoCapture != null && videoCapture.Ptr != IntPtr.Zero &&
// videoCapture.CaptureSource == VideoCapture.CaptureModuleType.Camera)
if (videoCapture != null && videoCapture.Ptr != IntPtr.Zero )
{
curframe = null;
curframe = videoCapture.Queryframe();
if (curframe != null)
{
imgSource.Image = m_KingFaceDetect.faceRecognize (curframe).originalImg;
}
}
}
catch (Exception e1)
{
// LogHelper.Error(e1.Message + “Source:“ + e1.Source + “StackTrace:“ + e1.StackTrace);
}
videoCapture.ImageGrabbed += Processframe;
}
private void Form1_FormClosed(object sender FormClosedEventArgs e)
{
videoCapture.Stop();
}
private void button2_Click(object sender EventArgs e)
{
string str = @“rtsp://admin:123456@192.168.10.101:554/h265/ch1/main/av_stream“;
videoCapture = new VideoCapture(str);
videoCapture.ImageGrabbed += Processframe;
videoCapture.Start();
}
private void button3_Click(object sender EventArgs e)
{
//string str = @“http://admin:123456@192.168.10.123/jpgimage/1/image.jpg“;
//videoCapture = new VideoCapture(str);
//videoCapture.ImageGrabbed += Processframe;
isConnectted = true;
// videoCapture.Start();
timer1.Enabled = true;
webClient = new WebClientExt(500);
NetworkCredential nc = new NetworkCredential(“admin“ “admin“);
webClient.Credentials = nc;
webClient.Proxy = null;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 189 2019-01-30 11:40 WindowsFormsApplication2\WindowsFormsApplication2\App.config
文件 82380 2019-01-31 09:41 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\002
文件 331432 2018-01-14 01:32 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\concrt140.dll
文件 31507968 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\cvextern.dll
文件 7680 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Emgu.CV.DebuggerVisualizers.VS2015.dll
文件 117760 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Emgu.CV.UI.dll
文件 27136 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Emgu.CV.UI.GL.dll
文件 665088 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Emgu.CV.World.dll
文件 609280 2018-04-04 23:15 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\Emgu.CV.World.NetStandard1_4.dll
文件 341406 2016-01-12 03:16 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\haarcascade_eye.xm
文件 930127 2016-01-12 03:16 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\haarcascade_frontalface_default.xm
文件 641696 2018-01-14 01:32 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\msvcp140.dll
文件 18053632 2018-04-04 22:42 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\opencv_ffmpeg341_64.dll
文件 87728 2018-01-14 01:32 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\vcruntime140.dll
文件 15360 2019-01-31 09:44 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
文件 189 2019-01-30 11:40 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe.config
文件 34304 2019-01-31 09:44 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
文件 22688 2019-01-31 09:33 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
文件 189 2019-01-30 11:40 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.config
文件 490 2017-09-29 21:43 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.manifest
文件 26929 2018-02-08 23:14 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\ZedGraph.license.txt
文件 4263 2019-01-31 09:44 WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs
文件 6647 2019-01-31 09:44 WindowsFormsApplication2\WindowsFormsApplication2\Form1.Designer.cs
文件 6011 2019-01-31 09:44 WindowsFormsApplication2\WindowsFormsApplication2\Form1.resx
文件 7044 2019-01-30 16:05 WindowsFormsApplication2\WindowsFormsApplication2\KingFaceDetect.cs
文件 868 2019-01-31 09:43 WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\DesignTimeResolveAssemblyReferences.cache
文件 7918 2019-01-31 09:39 WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 0 2019-01-31 09:39 WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
文件 0 2019-01-31 09:39 WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
文件 0 2019-01-31 09:39 WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
............此处省略27个文件信息
相关资源
- 麦克纳姆轮程序.rar
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- net微信支付
- lucene.net+盘古分词多条件全文检索并匹
- 闪电猫-电商下图助手5.0.zip
- FastReport.Net V2014.4.8 For .Net2.0
- NET Reflector 8.3破解版自带代码导出
- 清华大学计算机系网络课程之模式识
- Unity3D课程设计 模拟火焰效果
- Unity录屏模块封装清晰的可调AVPro Mo
- 利用同步TCP编写网络聊天程序
- 超屌的 查看windows窗口及其上的按钮等
- .net core 定时任务
- .Net-ORM框架-三层架构完整程序代码
- .Net 微服务实现Demo代码
- 源码仿CAD软件.rar
- 源码大型物料管理系统.rar
- 源码网络地址查询实现源码,包含查
- 周立功CAN接口开发资料
- PintuGame2.0.zip
- 非常好看的Metro风格留言板源码,(亲
- BehaviorDesigner.1.5.7_AI_111.rar
- 附和水准导线间接平差程序设计
- 360环视摄像头鱼眼四摄像头拼接算法
- SuperSocket服务端与客户端通信
- 模拟点击。后台版 源码
- 清除微信僵尸粉工具源码
- MD5源代码和教程
- NPOI最新版2.4.1
- NPOI使用手册
评论
共有 条评论