Giter Site home page Giter Site logo

timelapse's Introduction

Timelapse

What does it do?

Configurable routine that takes pictures at fixed time intervals using the Raspberry Pi (RPi) camera module. Optionally, the SenseHat can be used to read the sensors and the display as a flash to iluminate the subject.

Most of the routine parameters are configurable via JSON file. There is no need to change the code. If the JSON file is not provided, default parameters will be used.

What do you need?

  • Raspberry Pi (Required)
  • Camera Module (Required)
  • SenseHat (Optional)
  • Image Magick (Required)

How to execute it?

  • python3 timelapse.py --conf <conf.JSON>
  • python3 timelapse.py -c <conf.JSON>

JSON file parameters

a JSON file can be provided when executing the routine to control the overall behavior. The accepted parameters are:

  • camera rotation: int. Sets the camera rotation in degrees (0, 90, 180, 2702)
  • camera resolution: tuple. Sets the image resolution
  • camera_zoom": Sets the camera resolution. [0.0, 0.0, 1.0, 1.0]
  • camera_warmup_time": int. Sets the interval in secods to prepapre the camera
  • path: cwd
  • file_root": Sets ths root name of the picture file
  • lapse int. Sets the interval in secods to between pictures

The <default.json> file provided with this library can be edited to accomodate different requirements.

What are the defaults parameters?

If no JSON file is provided when executing the routine, the following parameters will be used by default:

  • camera rotation: 0
  • camera resolution: [960, 720]
  • camera_zoom": [0.0, 0.0, 1.0, 1.0]
  • camera_warmup_time": 2
  • path: cwd
  • file_root": "pic"
  • lapse: 10

What else do I need to know?

  • As the routine runs, it will display messages on the console to inform of the progress/status of the execution.
  • The routine will run on an infinite loop. to stop execution pres ctrl+c
  • The images capture are saved on JPEG format

Legal stuff

Author: Stein Castillo ([email protected])

  • Version: 1.5.0
  • License: Check license.txt for details

timelapse's People

Contributors

steincastillo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.