====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
peripherals:camera [2016/05/19 17:45] admin [PiCamera] |
peripherals:camera [2016/06/20 04:31] (current) admin [Activating the Camera] |
||
---|---|---|---|
Line 6: | Line 6: | ||
* Use the camera via [[https://www.raspberrypi.org/documentation/usage/camera/raspicam/README.md|a shell]] or [[https://www.raspberrypi.org/documentation/usage/camera/python/README.md|using python]] | * Use the camera via [[https://www.raspberrypi.org/documentation/usage/camera/raspicam/README.md|a shell]] or [[https://www.raspberrypi.org/documentation/usage/camera/python/README.md|using python]] | ||
- | ---- | + | ===== Activating the Camera ===== |
+ | |||
+ | On **Raspbian** you could use the ''raspi-config'' command to activate the camera. | ||
+ | If using another distribution (like [[:os:minibian|Minibian]] you might have to manually edit ''/boot/config.txt'' to have the following lines: | ||
+ | |||
+ | <Code:bash> | ||
+ | > nano /boot/config.txt | ||
+ | </Code> | ||
+ | <Code:bash |/boot/config.txt> | ||
+ | gpu_mem=128 | ||
+ | start_x=1 | ||
+ | </Code> | ||
+ | |||
+ | The reboot the Pi, and test that the camera is accessible with: | ||
+ | <Code:bash |Test capture:> | ||
+ | > raspistill -o cam.jpg | ||
+ | </Code> | ||
===== PiCamera ===== | ===== PiCamera ===== | ||
- | ---- | ||
There are a couple of python libraries available for the Pi Camera, the applications hereunder are real-life usage samples of the [[http://picamera.readthedocs.io|picamera library]]: | There are a couple of python libraries available for the Pi Camera, the applications hereunder are real-life usage samples of the [[http://picamera.readthedocs.io|picamera library]]: | ||
Line 35: | Line 50: | ||
More about [[http://picamera.readthedocs.io/en/release-1.10/install2.html#virtualenv-installation|upgrading, removing picamera from a virtualenv]]. | More about [[http://picamera.readthedocs.io/en/release-1.10/install2.html#virtualenv-installation|upgrading, removing picamera from a virtualenv]]. | ||
- | |||
- | ---- | ||
===== Applications ===== | ===== Applications ===== | ||
- | ---- | ||
| [[peripherals:camera:timelapse|{{ :peripherals:camera:timelapse-icon.png?nolink |}}]] | | | [[peripherals:camera:timelapse|{{ :peripherals:camera:timelapse-icon.png?nolink |}}]] | | ||
| [[peripherals:camera:timelapse|Timelapse]] | | | [[peripherals:camera:timelapse|Timelapse]] | |