ユーザーを、video グループに加える
sudo gpasswd -a user video
コマンドで撮影
raspistill -o a01.jpg
python3 のライブラリーをインストール
sudo apt install python3-picamera
python3 のソース
capture.py
#! /usr/bin/python3
# -*- coding: utf-8 -*-
#
# capture.py
#
# Jun/06/2017
# --------------------------------------------------------------------
import sys
import picamera
# --------------------------------------------------------------------
sys.stderr.write("*** 開始 ***\n")
#
width = 800
height = 600
cam = picamera.PiCamera()
cam.resolution = (width, height)
cam.capture("photo.jpg")
#
sys.stderr.write("*** 終了 ***\n")
# --------------------------------------------------------------------