本文整理汇总了Python中Camera.Camera.captureImage方法的典型用法代码示例。如果您正苦于以下问题:Python Camera.captureImage方法的具体用法?Python Camera.captureImage怎么用?Python Camera.captureImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Camera.Camera
的用法示例。
在下文中一共展示了Camera.captureImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from Camera import Camera [as 别名]
# 或者: from Camera.Camera import captureImage [as 别名]
/// while GPIO.input(GPIO_PIR)==1:
/// Current_State = 0
///
/// print "Ready"
///
/// # Loop until users quits with CTRL-C
/// while True :
///
/// # Read PIR state
/// Current_State = GPIO.input(GPIO_PIR)
///
/// if Current_State==1 and Previous_State==0:
/// # PIR is triggered
/// print "Motion detected."
///
images = camera.captureImage(defNumCaptures, defFrameInt, defWarmup)
if defCon.send_files_dir("/home/rpi/RPiCMD/bin/*", defHost, path):
os.system('rm /home/rpi/RPiCMD/bin/*.jpg')
if values.gvoice:
voice.send_sms(phone, "Motion Detected!")
if statusCon:
if not defCon.checksize(ident):
statusCon = False
print "Server connection lost, please restart to reestablish connection."
/// # Record previous state
/// Previous_State=1
/// elif Current_State==0 and Previous_State==1:
/// # PIR has returned to ready state