瀏覽代碼

rpicam-{hello,jpeg,raw,still,vid}: add page (#12078)

* rpicam-{hello,jpeg,raw,still,vid}: add page

---------

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
MIfoodie 1 年之前
父節點
當前提交
59f2ba32cd
共有 5 個文件被更改,包括 69 次插入0 次删除
  1. 12 0
      pages/linux/rpicam-hello.md
  2. 16 0
      pages/linux/rpicam-jpeg.md
  3. 12 0
      pages/linux/rpicam-raw.md
  4. 16 0
      pages/linux/rpicam-still.md
  5. 13 0
      pages/linux/rpicam-vid.md

+ 12 - 0
pages/linux/rpicam-hello.md

@@ -0,0 +1,12 @@
+# rpicam-hello
+
+> View a live camera stream using a Raspberry Pi camera.
+> More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-hello>.
+
+- Display a camera preview stream for a specific amount of time (in milliseconds):
+
+`rpicam-hello -t {{time}}`
+
+- Tune the configuration for a particular camera sensor:
+
+`rpicam-hello --tuning-file {{/usr/share/libcamera/ipa/rpi/path/to/config.json}}`

+ 16 - 0
pages/linux/rpicam-jpeg.md

@@ -0,0 +1,16 @@
+# rpicam-jpeg
+
+> Capture and store a JPEG image using a Raspberry Pi camera.
+> More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-jpeg>.
+
+- Capture an image and name the file:
+
+`rpicam-jpeg -o {{path/to/file.jpg}}`
+
+- Capture an image with set dimensions:
+
+`rpicam-jpeg -o {{path/to/file.jpg}} --width {{1920}} --height {{1080}}`
+
+- Capture an image with an exposure of 20 seconds and a gain of 150%:
+
+`rpicam-jpeg -o {{path/to/file.jpg}} --shutter 20000 --gain 1.5`

+ 12 - 0
pages/linux/rpicam-raw.md

@@ -0,0 +1,12 @@
+# rpicam-raw
+
+> Capture a raw video on a Raspberry Pi camera.
+> More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-raw>.
+
+- Capture a video for a specific amount of seconds:
+
+`rpicam-raw -t {{2000}}} -o {{path/to/file.raw}}`
+
+- Change video dimensions and framerate:
+
+`rpicam-raw -t {{5000}} --width {{4056}} --height {{3040}} -o {{path/to/file.raw}} --framerate {{8}}`

+ 16 - 0
pages/linux/rpicam-still.md

@@ -0,0 +1,16 @@
+# rpicam-still
+
+> Capture and store a photo using a Raspberry Pi camera with legacy features missing from `rpicam-jpeg`.
+> More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-still>.
+
+- Capture a photo with different encoding:
+
+`rpicam-still -e {{bmp|png|rgb|yuv420}} -o {{path/to/file.{{bmp|png|rgb|yuv420}}}}`
+
+- Capture a raw image:
+
+`rpicam-still -r -o {{path/to/file.jpg}}`
+
+- Capture a 100 second exposure image:
+
+`rpicam-still -o {{path/to/file.jpg}} --shutter 100000`

+ 13 - 0
pages/linux/rpicam-vid.md

@@ -0,0 +1,13 @@
+# rpicam-vid
+
+> Capture a video using a Raspberry Pi camera.
+> Some subcommands such as `vlc` have their own usage documentation.
+> More information: <https://www.raspberrypi.com/documentation/computers/camera_software.html#rpicam-vid>.
+
+- Capture a 10 second video:
+
+`rpicam-vid -t 10000 -o {{path/to/file.h264}}`
+
+- Play the video using `vlc`:
+
+`vlc {{path/to/file.h264}}`