====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
peripherals:camera [2016/05/19 17:40]
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]]:
  
 To make picamera available **for all users** on the system: To make picamera available **for all users** on the system:
-<code>+<Code:bash>
 > sudo apt-get update > sudo apt-get update
 > sudo apt-get install python-picamera > sudo apt-get install python-picamera
 [> sudo apt-get install python3-picamera] [> sudo apt-get install python3-picamera]
-</code>+</Code>
 to remove your installation:​ to remove your installation:​
-<code>+<Code:bash>
 > sudo apt-get remove python-picamera > sudo apt-get remove python-picamera
 [> sudo apt-get remove python3-picamera] [> sudo apt-get remove python3-picamera]
-</code>+</Code>
  
 To install picamera in a **Virtualenv**:​ To install picamera in a **Virtualenv**:​
-<code>+<Code:bash>
 > sudo apt-get install python-pip python-virtualenv > sudo apt-get install python-pip python-virtualenv
 > virtualenv sandbox > virtualenv sandbox
Line 32: Line 47:
 (sandbox) $ pip install picamera (sandbox) $ pip install picamera
 [(sandbox) $ pip-3.2 install picamera] [(sandbox) $ pip-3.2 install picamera]
-</code>+</Code>
  
 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]] ​ |