Raspberry Pi Camera Software
Raspberry Pi Camera Software
Raspberry Pi
Documentation
Computers
Accessories
Microcontrollers
Services
Pico C SDK
Camera software
libcamera and
libcamera-apps
Edit this on GitHub
Introduction
libcamera is a new software library aimed at supporting
complex camera systems directly from the Linux
operating system. In the case of the Raspberry Pi it
enables us to drive the camera system directly from open
source code running on ARM processors. The proprietary
code running on the Broadcom GPU, and to which users
have no access at all, is almost completely by-passed.
Getting Started
NOTE
libcamera-hello
NOTE
IMX378 dtoverlay=imx378
OV9281 dtoverlay=ov9281
NOTE
libcamera-hello
libcamera-hello is the equivalent of a "hello world"
application for the camera. It starts the camera, displays
a preview window, and does nothing else. For example
libcamera-hello
libcamera-hello -t 0
Options
Preview Window
NOTE
libcamera-jpeg
libcamera-jpeg is a simple still image capture
application. It deliberately avoids some of the additional
features of libcamera-still which attempts to
emulate raspistill more fully. As such the code is
signiXcantly easier to understand, and in practice still
provides many of the same features.
libcamera-jpeg -o test.jpg
Exposure Control
libcamera-still
libcamera-still is very similar to libcamera-jpeg
but supports more of the legacy raspistill options. As
before, a single image can be captured with
libcamera-still -o test.jpg
Encoders
libcamera-still -r -o test.jpg
libcamera-still -o long_exposure.jpg --
shutter 100000000 --gain 1 --awbgains 1,1 --
immediate
libcamera-vid
libcamera-vid is the video capture application. By
default it uses the Raspberry Pi’s hardware H.264
encoder. It will display a preview window and write the
encoded bitstream to the speciXed output. For example,
to write a 10 second video to Xle use
vlc test.h264
Encoders
Network Streaming
NOTE