I suggest that you start here: https://github.com/alexyak/camera