censor_image: Censor image using blurring or solid rectangle

View source: R/censor_image.R

censor_imageR Documentation

Censor image using blurring or solid rectangle

Description

This function inputs an image and applies blurring of detected faces or solid rectangle censoring of a manually defined region.

Usage

censor_image(
  image,
  filename = NULL,
  path = NULL,
  automatic = TRUE,
  blur = 75,
  width = 100,
  height = 100,
  x = 100,
  y = 100,
  color = "black"
)

Arguments

image

The image to be modified

filename

The filename for the censored output image

path

The path to the output image

automatic

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

blur

The amount of blur if 'automatic = TRUE' (0 to 100)

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 (only for 'automatic=FALSE')

Value

The path to the censored image file


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