There is no API in Unity to access the camera or photo library, but you can implement something like that yourself with a plugin. There are a variety of commercial plugins available for Unity, so it is possible someone has already made something like this.