timelapse: Make Timelapse from 'Stream' Object

View source: R/StreamClass.R

timelapseR Documentation

Make Timelapse from Stream Object

Description

Generates a timelapse sequence from a Stream object with a given duration and interval between images.

Usage

timelapse(x, outputFolder, interval = 1, duration = Inf, format = "png")

Arguments

x

The Stream object to use.

outputFolder

The path to the folder where the timelapse images will be saved. If it does not exist, it will be created. Note: the function will overwrite files present in this folder if they have the same names as the timelapse images.

interval

The interval in seconds between two successive images (default: 1).

duration

The duration in seconds of the timelapse. If infinite (the default), the timelapse will run until the user interrupts the function manually.

format

A character string corresponding to the format of the images (default: "png").

Value

This function does not return anything. It saves captured images in outputFolder.

Author(s)

Simon Garnier, garnier@njit.edu

Examples

## Not run: 
live <- stream(0)
timelapse(live, "./out")
release(live)

## End(Not run)


swarm-lab/Rvision documentation built on Feb. 7, 2024, 4:59 a.m.