比较网络摄像头图片与默认图片 [英] compare webcam picture with default picture

查看:125
本文介绍了比较网络摄像头图片与默认图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我有一个网络摄像头,它可以拍摄照片,我想将拍摄的照片与存储的照片图片进行比较。我该怎么做 。捕获照片显示在图片框上。用C#asp.net编写的代码

解决方案

您可以使用以下方法之一从网络摄像头捕获图像:

http://www.jpreece.com/wpf/webcam-image-capture/



http://easywebcam.codeplex.com/

最初由

发布 Abhinav S



然后使用以下内容更改存储图像中的图像控制。

  private   void  ShowPhoto()
{
mainImage.Source = new BitmapImage( new Uri( @ pack:/ / siteoforigin:,,, /图像/ userPhotoImage.jpg));

}





这将从相对路径(到可执行文件)加载一个名为userPhotoImage的图像/图像。


Hi i have a web cam and it captures a photo and i want to compare capture photo with stored photo picture . how can i do it . the capture photo is displaying on picture box . Code written in C# asp.net

解决方案

You can use one of the following to capture the image from web cam:
http://www.jpreece.com/wpf/webcam-image-capture/
or
http://easywebcam.codeplex.com/
originally posted by
Abhinav S

Then use the following to change the image control from the stored image.

private void ShowPhoto()
{
mainImage.Source = new BitmapImage(new Uri(@"pack://siteoforigin:,,,/images/userPhotoImage.jpg"));

}



This will load an image called userPhotoImage from the relative path (to the executable) "/images".


这篇关于比较网络摄像头图片与默认图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆