Difference between revisions of "Raspberry Pi: Camera V2"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
=== Capturing images === | === Capturing images === | ||
The simplest way to take is py entering the following command: | |||
raspistill -o ./image0.jpg | |||
You can easily adjust the pixel height and with by using the <code>-w</code> and <code>-h</code> parameters like this: | |||
raspistill -o ./image1.jpg -w 640 -h 480 | |||
For advanced use its suggested to read the output of the following command: | |||
raspistill --help | |||
=== Capturing video === | === Capturing video === | ||
Revision as of 11:06, 14 October 2020
Summary
This documentation is about the usage of the Raspberry Pi Modul Camera V2. It describes basic usage via the Shell and advanced usage with Python programming.
Requirements
- Hardware: Raspberry Pi
- Operating system: Rasbian
- Interpreter: Python or Python3
Installation
Firstly you have to Plug in The Camera Modul with the Ribbon Cable. Then you have to allow the usage of the Camera interface:
sudo raspi-config
-> Interfacing Options -> Camera -> Enable it
Shell usage
Rasbian already supplies pre-installed shell scripts for the cameramodul usage. The is one for Capturing Image raspistill
and one for capturing video raspivid
.
Capturing images
The simplest way to take is py entering the following command:
raspistill -o ./image0.jpg
You can easily adjust the pixel height and with by using the -w
and -h
parameters like this:
raspistill -o ./image1.jpg -w 640 -h 480
For advanced use its suggested to read the output of the following command:
raspistill --help
Capturing video
Python Usage
Used Hardware
Rasperry Pi Camera Modul V2, 8MP