Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
picamera [2014/07/23 00:15] admin |
picamera [2014/11/06 23:26] 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 | + | |
- | | + | |
- | | + | >>> |
- | | + | >>> |
- | 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 = ' | ||
+ | |||
+ | __AWB__ | ||
+ | cam.awb_mode = ' | ||
---- | ---- | ||