From charlesreid1

(Created page with "This page covers notes on time-lapse photography. There are twi main aspects to time-lapse photography: the hardware, and the software. * Hardware - cameras, wiring, instrumen...")
 
Line 29: Line 29:
* Installing the Raspberry Pi camera libraries
* Installing the Raspberry Pi camera libraries
* Ensuring the hardware was all connected properly and that everything was seated snugly (particularly the yellow tab on the front of the camera)
* Ensuring the hardware was all connected properly and that everything was seated snugly (particularly the yellow tab on the front of the camera)
==Photography==
To do a basic timelapse and capture photographs every few seconds, you can start with this stock script:
'''lapse.py'''
<pre>
import picamera
from datetime import datetime
import time
import os
camera = picamera.PiCamera()
lapse_dir = datetime.strftime(datetime.now(),"timelapse_%Y%m%d-%H%M%S")
os.system('mkdir '+lapse_dir)
while True:
    prefix = datetime.strftime(datetime.now(),"%Y%m%d-%H%M%S")
    filename = lapse_dir+"/"+prefix+".jpg"
    camera.capture(filename)
    print "Saving photo to %s"%(filename)
    time.sleep(2)
</pre>
==Post-Processing==

Revision as of 20:50, 30 July 2016

This page covers notes on time-lapse photography. There are twi main aspects to time-lapse photography: the hardware, and the software.

  • Hardware - cameras, wiring, instrumentation, weatherproofing, devices, gadgetry, motors, etc.
  • Software - capturing images, firmware, storage, networking, wireless communication, control systems

Hardware

Kinds of cameras you can use (for example):

  • Raspberry pi camera
  • Big fancy cameras

Software

The software used with timelapse photography may have several goals:

  • Use drivers to communicate with the camera hardware using whatever processor type (e.g., Raspberry Pi, Arduino, computer) to be able to capture images
  • Use drivers to control motors to adjust angles
  • Capture an image from the camera (resulting in a JPG file)
  • Run a sequential timing loop to obtain a sequence of images (e.g., a Python script)
  • Process the images, modify colors or apply filters, and turn them into a movie

Generally these can be broken down into:

  • Firmware (software to talk to hardware at a low level, for camera or camera-related hardware)
  • Photography (software to actually obtain photographs)
  • Post-Processing (software to modify the obtained photographs and stitch them together)

Firmware

Most of this covered on the RaspberryPi/Timelapse and RaspberryPi/Timelapse2 pages, where notes on the software being used to obtain photographs is mentioned. Basically this boiled down to:

  • Using Raspbian Linux, not Kali Linux, for the Pi
  • Installing the Raspberry Pi camera libraries
  • Ensuring the hardware was all connected properly and that everything was seated snugly (particularly the yellow tab on the front of the camera)

Photography

To do a basic timelapse and capture photographs every few seconds, you can start with this stock script:

lapse.py

import picamera
from datetime import datetime
import time
import os

camera = picamera.PiCamera()

lapse_dir = datetime.strftime(datetime.now(),"timelapse_%Y%m%d-%H%M%S")
os.system('mkdir '+lapse_dir)

while True:

    prefix = datetime.strftime(datetime.now(),"%Y%m%d-%H%M%S")
    filename = lapse_dir+"/"+prefix+".jpg"

    camera.capture(filename)
    print "Saving photo to %s"%(filename)

    time.sleep(2)

Post-Processing