Clink the link below to view instructions on how to setup and take pictures with the raspberry pi.

https://projects.raspberrypi.org/en/projects/getting-started-with-picamera
Click the link below to control the camera with PYTHON.
https://projects.raspberrypi.org/en/projects/getting-started-with-picamera/4
Click the link below to record video with PYTHON.
https://projects.raspberrypi.org/en/projects/getting-started-with-picamera/6