Technology is advancing all the time. Our needs are also changing all the time. Recently, during development, I encountered the problem that users need a personal image when registering an account, and the website provides an automatic photo taking function. Also, after logging in to the computer, when logging in on the mobile phone, you only need to scan the QR code on the computer to log in. This is extremely difficult for a network. The advancement of technology has led us to HTML5The following simple and crude demonstration is to complete these functions directly by looking at the code:
<!DOCTYPE html>HTML5调用摄像头实现拍照 TITLE> HEAD>