Img's static method fromcamera() is used. the computer should have a camera, and should authority to use camera.
网页会弹出相机权限,需要同意。