embeded/raspberry pi2016. 6. 9. 19:55

-t, --timeout   : Time (in ms) before takes picture and shuts down (if not specified, set to 5s)


기본값이 5초라서

사진 하나 받아오는데 항상 5초 걸리는 기분..

-t 0 는 안되므로

-t 1 이상은 설정을 해야 한다.



pi@raspberrypi:~/Pictures $ time raspistill -o tt.jpg -t 1


real    0m0.778s

user    0m0.010s

sys     0m0.030s


pi@raspberrypi:~/Pictures $ time raspistill -o tt.jpg -t 1000


real    0m1.948s

user    0m0.020s

sys     0m0.040s



받아오는 해상도 별로 시간 차이는 없음.



+

-tl, --timelapse        : Timelapse mode. Takes a picture every <t>ms. %d == frame number (Try: -o img_%04d.jpg)


그나저나 타임랩스 기능이 있네?


$ raspistill -tl 33 -o img_%04d.jpg

mmal: Skipping frame 2 to restart at frame 14

mmal: Skipping frame 15 to restart at frame 30

mmal: Skipping frame 31 to restart at frame 48

mmal: Skipping frame 49 to restart at frame 68

mmal: Skipping frame 69 to restart at frame 90

mmal: Skipping frame 91 to restart at frame 112

mmal: Skipping frame 113 to restart at frame 134

mmal: Skipping frame 135 to restart at frame 156


1/30초 단위로 찍게 하려고 33msec 했는데 1초에 두번 겨우 하는 정도..
$ file *
img_0001.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:56, width=0], baseline, precision 8, 2592x1944, frames 3
img_0014.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:57, width=0], baseline, precision 8, 2592x1944, frames 3
img_0030.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:57, width=0], baseline, precision 8, 2592x1944, frames 3
img_0048.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:58, width=0], baseline, precision 8, 2592x1944, frames 3
img_0068.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:58, width=0], baseline, precision 8, 2592x1944, frames 3
img_0090.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:03:59, width=0], baseline, precision 8, 2592x1944, frames 3
img_0112.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:04:00, width=0], baseline, precision 8, 2592x1944, frames 3
img_0134.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:04:00, width=0], baseline, precision 8, 2592x1944, frames 3
img_0156.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:04:01, width=0], baseline, precision 8, 2592x1944, frames 3


해상도별 차이는 없는 기분?

$ raspistill -tl 1 -o img_%04d.jpg -w 640 -h 480

mmal: Skipping frame 2 to restart at frame 342

mmal: Skipping frame 343 to restart at frame 868

mmal: Skipping frame 869 to restart at frame 1442

mmal: Skipping frame 1443 to restart at frame 2124

mmal: Skipping frame 2125 to restart at frame 2847

mmal: Skipping frame 2848 to restart at frame 3569

mmal: Skipping frame 3570 to restart at frame 4292

mmal: Skipping frame 4293 to restart at frame 5014



 $ file *

img_0001.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:01, width=0], baseline, precision 8, 640x480, frames 3

img_0342.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:02, width=0], baseline, precision 8, 640x480, frames 3

img_0868.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:02, width=0], baseline, precision 8, 640x480, frames 3

img_1442.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:03, width=0], baseline, precision 8, 640x480, frames 3

img_2124.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:03, width=0], baseline, precision 8, 640x480, frames 3

img_2847.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:04, width=0], baseline, precision 8, 640x480, frames 3

img_3569.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:05, width=0], baseline, precision 8, 640x480, frames 3

img_4292.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:05, width=0], baseline, precision 8, 640x480, frames 3

img_5014.jpg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=10, height=0, manufacturer=RaspberryPi, model=RP_ov5647, xresolution=156, yresolution=164, resolutionunit=2, datetime=2016:06:09 11:07:06, width=0], baseline, precision 8, 640x480, frames 3



Posted by 구차니