censor_image | R Documentation |
This function inputs an image and applies blurring of detected faces or solid rectangle censoring of a manually defined region.
censor_image(
image,
filename = NULL,
path = NULL,
automatic = TRUE,
blur = 75,
width = 100,
height = 100,
x = 100,
y = 100,
color = "black"
)
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') |
The path to the censored image file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.