Open Webcam and capture image with C# in ASP.NET Webforms

Asked

Viewed 382 times

0

all right? I am developing a student registration system and I need to open the computer webcam to take a photo of the student and link in their registration, I would like to know how it is possible to perform this action using C# in ASP.NET Webform. From now on, thank you very much!

  • Managed to advance?

  • Unfortunately not my friend, it just opens as a normal input type="file", I needed a solution that opened the webcam using any means that involves ASP.NET or Javascript, I already managed to open the Webcam, but I’m still having trouble capturing the image, but I’m on my way, anyway I thank the friend for the good willingness to help. Thank you very much!

1 answer

0

You can simply use an input file with the attribute capture, if the device is available and the access is released by the user the capture will be done by it, otherwise it will open the dialog for file selection in local directories

<input type="file" accept="image/*" capture>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.