Why I can't take image snapshot with client-side camera in Django web application?

后端 未结 2 733
我在风中等你
我在风中等你 2020-12-28 23:37

I have a Django web application in which I want to give an option to capture the image in the registration form. So, whenever the user presses the capture image button then

2条回答
  •  情书的邮戳
    2020-12-29 00:04

    You have several options to access client webcam. The easiest way is HTML5. But you can use sveral tools in silverlight and flash plugin.

    See how-to-access-webcam-from-html5 and html5-getusermedia-record-webcam-both-audio-and-video

    After getting image in page you can send it to server in diffrent ways including JavaScript (with AJAX) or using HTML form element (like file input)

提交回复
热议问题