If you want to take a picture of user from webcam or mobile camera then you can use javascript webcam
Read more