Skip to main content
Known Participant
May 30, 2019 9:48 AM UTC
Question

Taking photo using webcam ...

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
Jun 20, 2019 6:34 PM UTC

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

Translate
Known Participant
Jun 27, 2019 7:51 PM UTC

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

Translate
BKBK
Community Expert
Community Expert
Jun 1, 2019 7:40 PM UTC

Google for software to control webcam.

Translate