4.How to use camera

CAMERA V2

  • If you use the camera v2,you need use the lastest official Raspbian OS.

ENABLING THE CAMERA

  • Update and upgrade Raspbian from the Terminal:
    sudo apt-get update
    sudo apt-get upgrade
  • Open the raspi-config tool from the Terminal:
    sudo raspi-config
    Select Enable camera and hit Enter, then go to Finish and you'll be prompted to reboot.

    Figure 2: Enable camera


USING THE CAMERA

  • Power up and take photos or shoot videos from the Terminal:
    Taking photos:
    raspistill -o image.jpg
    Shooting videos:
    raspivid -o video.h264 -t 10000
    -t 10000 means the video last 10s, changeable.


Reference