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
Last revision Both sides next revision
picamera [2014/11/06 23:21]
admin
picamera [2016/12/11 14:19]
admin [Funktions for the Camera Preview:]
Line 1: Line 1:
----- +===== PiCamera=====
-**PiCamera** +
-----+
  
 [[http://picamera.readthedocs.org/en/release-1.4/]]\\ [[http://picamera.readthedocs.org/en/release-1.4/]]\\
  
----- +==== Installation ====
-**Install:**+
   $ sudo apt-get update   $ sudo apt-get update
   $ sudo apt-get install python-picamera   $ sudo apt-get install python-picamera
  
----- +==== Example ====
-**Example:** +
  
   >>> import picamera   >>> import picamera
-  >>> cam = picamera.PiCamera() +  >>> camera = picamera.PiCamera() 
-  >>> cam.start_preview() +  >>> camera.start_preview() 
-  >>> cam.stop_preview()+  >>> camera.stop_preview()
  
 +----
 +====Funktions for the Camera Preview:====
 +__brightness__ (0<u<100)\\
 +  camera.brightness = u
  
----- 
-**Funktions for Camera Preview:**\\ 
 __color effects__ (0 < u < 255 and 0 < v < 255)\\ __color effects__ (0 < u < 255 and 0 < v < 255)\\
 +The default value is //None//\\
   camera.color_effects = (u, v)   camera.color_effects = (u, v)
 + 
  
 __contrast__ (-100 < u < 100) __contrast__ (-100 < u < 100)
Line 57: Line 56:
      
 __rotation__ (0, 90, 180, 270) __rotation__ (0, 90, 180, 270)
-  camera.rotate = 90+  camera.rotation = 90
      
 __saturation__ (-100 < u < 100) __saturation__ (-100 < u < 100)
Line 67: Line 66:
 __exposure__ __exposure__
   cam.exposure_mode = 'off'   cam.exposure_mode = 'off'
- +   
-__led__+__AWB__ 
 +  cam.awb_mode = 'auto'  
  
  
 ---- ----