Skip to main content
Known Participant
May 30, 2019
Question

Taking photo using webcam ...

  • May 30, 2019
  • 2 replies
  • 1055 views

Not specific to CF, maybe Javascript or Jquery ... looked everywhere on google and found nothing.

So I am on a web site the other day and in addition to being able to upload your government issued photo id, you could also say cheese and

have your built in laptop web cam take your photo.

How do you do that?  What library tool?

This topic has been closed for replies.

2 replies

Inspiring
June 20, 2019

You can do this in modern browsers using HTML5 getUserMedia() functionality.  No plugins or external libraries required.  Create a hidden input field on a standard HTML form and then direct the image capture javascript to populate the field with the image data.

Check out Capturing Audio & Video in HTML5 - HTML5 Rocks

Known Participant
June 27, 2019

Thanks. When I revisit that part of the application, I will defo give this a try!

BKBK
Community Expert
Community Expert
June 1, 2019

Google for software to control webcam.