censor_video: Censor video

View source: R/censor_video.R

censor_videoR Documentation

Censor video

Description

This function inputs a video and censors a manually defined region.

Usage

censor_video(
  video,
  filename = NULL,
  path = NULL,
  automatic = TRUE,
  rescale_rect = 1,
  width = 100,
  height = 100,
  x = 100,
  y = 100,
  color = "black"
)

Arguments

video

The video to be modified

filename

The filename for the censored output video

path

The path to the output video

automatic

Whether to attempt automatic face detection ('automatic = TRUE' is default)

rescale_rect

Rescale rectangle by factor if 'automatic = TRUE' (default = 1)

width

The width of the rectangle (only for 'automatic = FALSE')

height

The height of the rectangle (only for 'automatic = FALSE')

x

The x coordinate of the rectangle (only for 'automatic = FALSE')

y

The y coordinate of the rectangle (only for 'automatic = FALSE')

color

The color of the rectangle

Value

The path to the censored video file


borstell/signglossR documentation built on June 11, 2025, 5:58 a.m.