
A P P E N D I X B
R A S P B E R R Y P I C A M E R A M O D U L E Q U I C K R E F E R E N C E
275
❍
-w or --width (Width)—
Specifies the width, or horizontal resolution, of the captured
image or video. This should be set to the desired width in pixels; for example, a Full HD
capture would require a width value of 1920. The minimum value is 64; the maximum
depends on whether a still image or a video is being captured.
Raspistill Options
Designed to capture still images,
raspistill
has some specific options that do not apply
to
raspivid
. These options are listed below.
❍
-e or --encoding (Encoding Format)—
Sets the format of the output image. This
does not affect the file extension of the output file, which must be changed manually
using the
--
output option. Possible values for this option are
jpg
,
bmp
,
gif
,
png
.
❍
-q or --quality (JPEG Quality)—
Sets the compression level of the saved JPEG, and has
no effect when using any other encoding format. The lower the value, the smaller the
final image file; a value of 100 will provide the best possible quality, while a value of 0 will
provide the smallest file size. A value of 90 is a good trade-off between size and quality.
❍
-r or --raw (Save Bayer Data)—
Saves the output of the camera’s Bayer colour filter
as metadata in the JPEG image, and has no effect when using any other encoding for-
mat. This extra data, the output of the camera’s sensor without interpolation, can be
used in image editing applications to reconstruct a higher quality or more detailed
image, but is not normally required.
❍
-th or -–thumb (Thumbnail Settings)—
Sets the size and quality of the thumbnail
saved with JPEG images, and has no effect when used with any other encoding format.
The value should be given as X:Y:Q, where X is the width, Y the height and Q the JPEG
quality from 0 to 100 of the thumbnail.
❍
-tl or --timelapse (Timelapse Mode)—
Puts
raspistill
into timelapse mode,
where images will be captured at a set interval. Most useful when using
raspistill
with a script or third-party application by setting the Output file to the standard out-
put with a hyphen (
-
) character; when used with a filename in the
--output
option,
the file will be overwritten every time a new image is captured. The value for this option
should be the delay between captures in milliseconds.
❍
-x or --exif (EXIF Tag)—
Allows custom Exchangable Image File Format (EXIF) tags
to be written to a JPEG image, and has no effect when used with any other encoding
formats. Tags should be formatted as ‘key=value’ with one possible example being set-
ting the name of the photographer using
-x ‘Author=Gareth Halfacree’
.
Содержание A
Страница 1: ......
Страница 2: ......
Страница 3: ...Raspberry Pi User Guide 2nd Edition...
Страница 4: ......
Страница 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Страница 10: ......
Страница 26: ...R A S P B E R R Y P I U S E R G U I D E S E C O N D E D I T I O N 10...
Страница 28: ......
Страница 29: ...Chapter 1 Meet the Raspberry Pi...
Страница 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Страница 56: ......
Страница 57: ...Chapter 3 Linux System Administration...
Страница 79: ...Chapter 4 Troubleshooting...
Страница 89: ...Chapter 5 Network Configuration...
Страница 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Страница 122: ......
Страница 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Страница 140: ......
Страница 141: ...Chapter 8 The Pi as a Home Theatre PC...
Страница 151: ...Chapter 9 The Pi as a Productivity Machine...
Страница 159: ...C H A P T E R 9 T H E P I A S A P R O D U C T I V I T Y M A C H I N E 143 Figure 9 4 Exporting a file from The Gimp...
Страница 160: ......
Страница 161: ...Chapter 10 The Pi as a Web Server...
Страница 171: ...Part III Programming with the Raspberry Pi Chapter 11 An Introduction to Scratch Chapter 12 An Introduction to Python...
Страница 172: ......
Страница 173: ...Chapter 11 An Introduction to Scratch...
Страница 189: ...Chapter 12 An Introduction to Python...
Страница 216: ......
Страница 218: ......
Страница 219: ...Chapter 13 Learning to Hack Hardware...
Страница 234: ......
Страница 235: ...Chapter 14 The GPIO Port...
Страница 249: ...Chapter 15 The Raspberry Pi Camera Module...
Страница 265: ...Chapter 16 Add on Boards...
Страница 279: ...Part V Appendixes Appendix A Python Recipes Appendix B Camera Module Quick Reference Appendix C HDMI Display Modes...
Страница 280: ......
Страница 281: ...Appendix A Python Recipes...
Страница 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Страница 293: ...Appendix C HDMI Display Modes...