Documentation for picamera¶
This package provides a pure Python interface to the Raspberry Pi camera module for Python 2.7 (or above) and Python 3.2 (or above).
The code is licensed under the BSD license. Packages can be downloaded from the project homepage on PyPI. The source code can be obtained from GitHub, which also hosts the bug tracker. The documentation (which includes installation, quick-start examples, and lots of code recipes) can be read on ReadTheDocs.
Table of Contents¶
- 1. Python 2.7+ Installation
- 2. Python 3.2+ Installation
- 3. Quick Start
- 4. Basic Recipes
- 4.1. Capturing to a file
- 4.2. Capturing to a stream
- 4.3. Capturing to a PIL Image
- 4.4. Capturing to an OpenCV object
- 4.5. Capturing resized images
- 4.6. Capturing consistent images
- 4.7. Capturing timelapse sequences
- 4.8. Capturing in low light
- 4.9. Capturing to a network stream
- 4.10. Recording video to a file
- 4.11. Recording video to a stream
- 4.12. Recording over multiple files
- 4.13. Recording to a circular stream
- 4.14. Recording to a network stream
- 4.15. Overlaying text on the output
- 4.16. Controlling the LED
- 5. Advanced Recipes
- 5.1. Unencoded image capture (YUV format)
- 5.2. Unencoded image capture (RGB format)
- 5.3. Rapid capture and processing
- 5.4. Rapid capture and streaming
- 5.5. Capturing images whilst recording
- 5.6. Recording at multiple resolutions
- 5.7. Recording motion vector data
- 5.8. Splitting to/from a circular stream
- 5.9. Custom outputs
- 5.10. Custom encoders
- 5.11. Raw Bayer data captures
- 6. Frequently Asked Questions (FAQ)
- 6.1. Can I put the preview in a window?
- 6.2. Help! I started a preview and can’t see my console!
- 6.3. How much power does the camera require?
- 6.4. How can I take two consecutive pictures with equivalent settings?
- 6.5. Can I use picamera with a USB webcam?
- 6.6. How can I tell what version of picamera I have installed?
- 7. Camera Hardware
- 8. API Reference
- 8.1. PiCamera
- 8.2. PiCameraCircularIO
- 8.3. CircularIO
- 8.4. PiVideoFrameType
- 8.5. PiVideoFrame
- 8.6. PiEncoder
- 8.7. PiVideoEncoder
- 8.8. PiImageEncoder
- 8.9. PiRawMixin
- 8.10. PiCookedVideoEncoder
- 8.11. PiRawVideoEncoder
- 8.12. PiOneImageEncoder
- 8.13. PiMultiImageEncoder
- 8.14. PiRawImageMixin
- 8.15. PiCookedOneImageEncoder
- 8.16. PiRawOneImageEncoder
- 8.17. PiCookedMultiImageEncoder
- 8.18. PiRawMultiImageEncoder
- 8.19. Exceptions
- 9. Array Extensions
- 10. Change log
- 10.1. Release 1.7 (2014-08-08)
- 10.2. Release 1.6 (2014-07-21)
- 10.3. Release 1.5 (2014-06-11)
- 10.4. Release 1.4 (2014-05-06)
- 10.5. Release 1.3 (2014-03-22)
- 10.6. Release 1.2 (2014-02-02)
- 10.7. Release 1.1 (2014-01-25)
- 10.8. Release 1.0 (2014-01-11)
- 10.9. Release 0.8 (2013-12-09)
- 10.10. Release 0.7 (2013-11-14)
- 10.11. Release 0.6 (2013-10-30)
- 10.12. Release 0.5 (2013-10-21)
- 10.13. Release 0.4 (2013-10-11)
- 10.14. Release 0.3 (2013-10-04)
- 10.15. Release 0.2
- 11. License