Take a photo using a webcam from C #

I want to take a photo using a webcam from my application. How to do it? My application is developed in C # and in order to make a visitor pass, I want to take a photo of a particular visitor when he enters the company building.

+4
source share
3 answers

Try jQuery Webcam

I am trying to get the save function to work, but its beginning.

+2
source

Webcams use different APIs. Find the API supported by your webcam ... let me know and I will gladly tell you how to do it.

I assume you are talking to WinForms?

0
source

You will need some kind of trusted code on the client side if you want to do this. Java, Flash, SilverLight - all features. But they can create a dependency on a specific WebCam / Software / API.

You are much better off setting up your webcam to place your photos in one place and have a web form that accepts the file.

This way, when your webcam crashes and you cannot get the same device that you do not need to transcode.

0
source

Source: https://habr.com/ru/post/1341284/


All Articles