Libcamera
Differences between revisions 1 and 2
|
⇤ ← Revision 1 as of 2023-06-08 14:50:37
Size: 935
Comment:
|
← Revision 2 as of 2026-01-13 13:58:16 ⇥
Size: 1010
Comment: cam doesn't appear to support jpg output, according to --help
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 13: | Line 13: |
| $ cam --camera=1 --capture=1 --file=image.jpg | $ cam --camera=1 --capture=1 --file=image.ppm |
| Line 15: | Line 15: |
NOTE: cam has limited pixel conversion support, the above may not work. |
Install the packages
$ sudo apt install libcamera-tools gstreamer1.0-libcamera
Check that your camera is listed
$ cam -l
Capture an image
$ cam --camera=1 --capture=1 --file=image.ppm
NOTE: cam has limited pixel conversion support, the above may not work.
Verify that the captured image is correct
$ eog image.jpg
Check that the gstreamer plugin is working
$ gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink
(you might need to specify a camera-name=... if more than 1 camera is available)
Run the camera compliance tests
$ lc-compliance -c "camera_name"
(you can get "camera_name" by doing lc-compliance 2>&1 | tail -n 1 | cut -c 3-, and yes the name is slightly confusing and include the leading \_ chars)
Try an application using libcamera
To be added once we have a client software available in the archive
DesktopTeam/TestPlans/Libcamera (last edited 2026-01-13 13:58:16 by charles05)