image_face_blur_mapper

Mapper to blur faces detected in images.

This operator uses an OpenCV classifier to detect faces in images and applies a specified blur type to the detected face regions. The blur types supported are ‘mean’, ‘box’, and ‘gaussian’. The radius of the blur kernel can be adjusted. If no save directory is provided, the modified images will be saved in the same directory as the input files.

用于模糊图像中检测到的人脸的映射器。

该算子使用OpenCV分类器检测图像中的人脸,并对检测到的人脸区域应用指定的模糊类型。支持的模糊类型有’mean’、’box’和’gaussian’。可以调整模糊核的半径。如果没有提供保存目录,修改后的图像将保存在与输入文件相同的目录中。

Type 算子类型: mapper

Tags 标签: cpu, image

🔧 Parameter Configuration 参数配置

name 参数名

type 类型

default 默认值

desc 说明

cv_classifier

<class ‘str’>

''

OpenCV classifier path for face detection.

blur_type

<class ‘str’>

'gaussian'

Type of blur kernel, including

radius

typing.Annotated[float, Ge(ge=0)]

2

Radius of blur kernel.

save_dir

<class ‘str’>

None

The directory where generated image files will be stored.

args

''

extra args

kwargs

''

extra args

📊 Effect demonstration 效果演示

not available 暂无