라즈베리파이 스터디 글답변
이름
필수
비밀번호
필수
이메일
홈페이지
옵션
html
비밀글
제목
필수
내용
필수
> > > https://blog.naver.com/gauya/220805265854 > > #! /usr/bin/python > > import picamera > import time > > outp="cctv/" # forder > > wakeup = 5 > cam = picamera.PiCamera() > > def capture1(fn): > cam.resolution = (320, 240) > cam.rotation = (180) > cam.start_preview() > if wakeup: > time.sleep(wakeup) # wakeup time > cam.capture(fn) > print( fn + " captured") > cam.stop_preview() > > def rec1(fn): > cam.resolution = (640, 480) > cam.framerate = 24 > cam.annotate_text = 'Raspberry pi CAM Test\n' +fn > # cam.annotate_text = time.strftime('%Y-%m-%d %H:%M:%S') > > cam.start_preview() > if wakeup: > time.sleep(wakeup) # wakeup time > cam.start_recording(fn) > cam.wait_recording(5) > cam.stop_recording() > print( fn + " recorded") > cam.stop_preview() > > #capture1(outp+'test.jpg') > #wakeup=None > > for i in range(5): > cfn = time.strftime(outp+"%Y%m%d-%H%M%S.jpg") > vfn = time.strftime(outp+"%Y%m%d-%H%M%S.h264") > > capture1(cfn) > #rec1(vfn) > >
링크 #1
링크 #2
파일 #1
파일 #2
자동등록방지
숫자음성듣기
새로고침
자동등록방지 숫자를 순서대로 입력하세요.
취소
작성완료