Git Product home page Git Product logo

webcam-grabber's Introduction

Webcam grabber

Small utility made for a friend, to grab images from a webcam off the web at a specific interval and convert these into a time-laspe video.

Features

  • Grab preview image at given intervals
  • Script to convert all images to video

grab_cam.py

This shell script grabs an image from an URL using wget at regular intervals. Most webcam accessible through a webpage has an url for a preview that is updated regularly, this is what is downloaded using this script.

Command line

usage: grab_cam.py [-h] [-l, --light LIGHT_PERCENT]
                [-d, --daylight DAYLIGHT DAYLIGHT]
                interval url target_dir

positional arguments:
interval              Interval betewwn grabs, in secends
url                   URL of the image
target_dir            Target directory

optional arguments:
-h, --help            show this help message and exit
-l, --light LIGHT_PERCENT
                        Image are discarded below this B/W light level in
                        percent
-d, --daylight DAYLIGHT DAYLIGHT
                        Longetude and latitude to only grab during
                        astronomical daylight hours

to_video.sh

Convert all jpeg images in current directory to video.

to_video.sh fps extension output_filename

  • fps: FPS of the video
  • extension: Input image extension
  • output_filename: Output video file name

Dependecies

Grabber

  • Pillow
  • BeautifulSoup

Installing (Debian like systems)

As root do:

apt-get install python3-bs4 python3-pil

Video converter

  • mencoder

Installing (Debian like systems)

As root do:

apt-get install mencoder 

webcam-grabber's People

Contributors

deadbok avatar

Stargazers

 avatar Fiberian avatar  avatar LxTrip avatar

Watchers

 avatar James Cloos avatar

Forkers

8l4nk

webcam-grabber's Issues

Dark detection

Average or other algorithm to detect dark frames and discard them.

Detect similar frames

Do a diff of the current and previous frames, and back off for a while if they are the same.

Grab only during daylight

Use an online service to look up the sunrise/sunset times of the location. Only grab frames during daylight.

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.