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
Next revision Both sides next revision
picamera [2014/07/23 00:15]
admin
picamera [2016/07/07 22:53]
admin
Line 1: Line 1:
 ---- ----
-**PiCamera**\\+**PiCamera**
 ---- ----
  
Line 6: Line 6:
  
 ---- ----
-**Install:**\\+**Install:**
   $ sudo apt-get update   $ sudo apt-get update
   $ sudo apt-get install python-picamera   $ sudo apt-get install python-picamera
  
 ---- ----
-**Example:**\\+**Example:**
  
-  import time + 
-  import picamera +  >>> import picamera 
-  with picamera.PiCamera() as camera: +  >>> camera = picamera.PiCamera() 
-    camera.start_preview() +  >>> camera.start_preview() 
-    try: +  >>> camera.stop_preview()
-        for j in range(100): +
-            camera.preview_fullscreen = False +
-            camera.preview_window = (100-j, 100-j, 1000, 500) +
-            time.sleep(0.2) +
-    finally: +
-        camera.stop_preview()+
  
  
Line 71: Line 65:
   camera.vflip = False   camera.vflip = False
  
-__led__+__exposure__ 
 +  cam.exposure_mode = 'off' 
 +   
 +__AWB__ 
 +  cam.awb_mode = 'auto'  
  
  
 ---- ----