picamera¶
This package provides a pure Python interface to the Raspberry Pi camera module for Python 2.7 (or above) or Python 3.2 (or above).
Links¶
- The code is licensed under the BSD license
- 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
- Packages can be downloaded from PyPI, but reading the installation instructions is more likely to be useful
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 images on the preview
- 4.16. Overlaying text on the output
- 4.17. 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
- 5.12. Using a flash with the camera
- 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. The preview doesn’t work on my PiTFT screen
- 6.4. How much power does the camera require?
- 6.5. How can I take two consecutive pictures with equivalent settings?
- 6.6. Can I use picamera with a USB webcam?
- 6.7. How can I tell what version of picamera I have installed?
- 6.8. How come I can’t upgrade to the latest version?
- 6.9. Why is there so much latency when streaming video?
- 7. Camera Hardware
- 8. Deprecated Functionality
- 9. API -
picamera
Package - 10. API -
picamera.camera
Module - 11. API -
picamera.encoders
Module- 11.1. PiVideoFrameType
- 11.2. PiVideoFrame
- 11.3. PiEncoder
- 11.4. PiVideoEncoder
- 11.5. PiImageEncoder
- 11.6. PiRawMixin
- 11.7. PiCookedVideoEncoder
- 11.8. PiRawVideoEncoder
- 11.9. PiOneImageEncoder
- 11.10. PiMultiImageEncoder
- 11.11. PiRawImageMixin
- 11.12. PiCookedOneImageEncoder
- 11.13. PiRawOneImageEncoder
- 11.14. PiCookedMultiImageEncoder
- 11.15. PiRawMultiImageEncoder
- 12. API -
picamera.streams
Module - 13. API -
picamera.renderers
Module - 14. API -
picamera.color
Module - 15. API -
picamera.array
Module - 16. API -
picamera.exc
Module - 17. Change log
- 17.1. Release 1.10 (2014-03-31)
- 17.2. Release 1.9 (2015-01-01)
- 17.3. Release 1.8 (2014-09-05)
- 17.4. Release 1.7 (2014-08-08)
- 17.5. Release 1.6 (2014-07-21)
- 17.6. Release 1.5 (2014-06-11)
- 17.7. Release 1.4 (2014-05-06)
- 17.8. Release 1.3 (2014-03-22)
- 17.9. Release 1.2 (2014-02-02)
- 17.10. Release 1.1 (2014-01-25)
- 17.11. Release 1.0 (2014-01-11)
- 17.12. Release 0.8 (2013-12-09)
- 17.13. Release 0.7 (2013-11-14)
- 17.14. Release 0.6 (2013-10-30)
- 17.15. Release 0.5 (2013-10-21)
- 17.16. Release 0.4 (2013-10-11)
- 17.17. Release 0.3 (2013-10-04)
- 17.18. Release 0.2
- 18. License