コード例 #1
0
import requests

import RPi.GPIO as GPIO
from OlympusAir import OlympusAir, OlympusAirError, OlympusAirLiveViewFrame

# LEDpins = [17, 27, 22, 6, 13, 19, 26]
LEDpins = [19, 6, 26, 22, 27, 17, 13]
GPIO.setmode(GPIO.BCM)
GPIO.setup(LEDpins,GPIO.OUT)
GPIO.output(LEDpins, GPIO.LOW)

dirPath = './' + datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
print '======= ' + dirPath + ' ======='
os.mkdir(dirPath)

cam = OlympusAir()
cam.commInterface()
cam.switchMode('standalone')
cam.switchMode('rec')
cam.getProperty('BATTERY_LEVEL')
cam.setProperty('FOCUS_STILL','FOCUS_SAF')
cam.setProperty('RAW','ON')
cam.setProperty('TAKE_DRIVE','DRIVE_NORMAL')
cam.setProperty('TAKEMODE','A')
cam.setProperty('DESTINATION_FILE','DESTINATION_FILE_MEDIA')
cam.setProperty('EXPREV','-1.0')
cam.setProperty('AE','AE_ESP')
cam.setProperty('APERTURE','2.8')
cam.setProperty('ISO','1600')

 
コード例 #2
0
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>

# <codecell>

import OlympusAir
import os
import datetime
import requests

from OlympusAir import OlympusAir, OlympusAirError, OlympusAirLiveViewFrame

cam = OlympusAir()
cam.commInterface()
cam.switchMode('rec')
cam.setProperty('FOCUS_STILL', 'FOCUS_SAF')
cam.setProperty('RAW', 'ON')
cam.setProperty('TAKE_DRIVE', 'DRIVE_NORMAL')
cam.setProperty('TAKEMODE', 'P')
cam.setProperty('DESTINATION_FILE', 'DESTINATION_FILE_MEDIA')
cam.setZoom(20)

dirPath = './' + datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
print '======= ' + dirPath + ' ======='

os.mkdir(dirPath)

cam.startPreview()

for i in range(10):
コード例 #3
0
ファイル: previewScript.py プロジェクト: hblasins/OlympusAir
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>

# <codecell>

import OlympusAir
import os
import datetime
import requests

from OlympusAir import OlympusAir, OlympusAirError, OlympusAirLiveViewFrame


cam = OlympusAir()
cam.commInterface()
cam.switchMode('rec')
cam.setProperty('FOCUS_STILL','FOCUS_SAF')
cam.setProperty('RAW','ON')
cam.setProperty('TAKE_DRIVE','DRIVE_NORMAL')
cam.setProperty('TAKEMODE','P')
cam.setProperty('DESTINATION_FILE','DESTINATION_FILE_MEDIA')
cam.setZoom(20)

 
dirPath = './' + datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
print '======= ' + dirPath + ' ======='

# os.mkdir(dirPath)

cam.startPreview()
コード例 #4
0
ファイル: captureScript.py プロジェクト: hblasins/OlympusAir
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>

# <codecell>

import OlympusAir
import os
import datetime
import requests

from OlympusAir import OlympusAir, OlympusAirError, OlympusAirLiveViewFrame

cam = OlympusAir()
cam.commInterface()
cam.switchMode('rec')
cam.setProperty('FOCUS_STILL','FOCUS_SAF')
cam.setProperty('RAW','ON')
cam.setProperty('TAKE_DRIVE','DRIVE_NORMAL')
cam.setProperty('TAKEMODE','P')
cam.setProperty('DESTINATION_FILE','DESTINATION_FILE_MEDIA')
cam.setZoom(20)

 
dirPath = './' + datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S')
print '======= ' + dirPath + ' ======='

os.mkdir(dirPath)

cam.startPreview()

for i in range(10):