yzsp-studio/mediakit-shared-suite / mediakit-image
mediakit-image
Verified面向单张或批量图片的视觉处理、质量优化、内容理解与基础编辑目标,适用于图片尺寸缩放与体积治理、质量优先缩小体积、明确体积上限/质量值/格式转换的压缩、元信息探测、裁剪旋转翻转与圆角、颜色与锐化清晰度调整、负片、模糊与打码、水印、背景移除、文字识别、画质评估与智能裁剪等。若对象和目标族已明确属于图片优化、图片理解、图片隐私保护或图片基础编辑,但具体做法不确定,可先加载本 Skill 探索;若只说有图片而未说明业务目标,应先澄清。视频画面裁剪、字幕压制、混音合流或视频局部模糊等成片编辑应路由到 editing;视频抽帧、视频理解、视频增强或视频字幕擦除应路由到 video。
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 1.1 KB |
| SKILL.md | skill md | 9.0 KB |
| reference/add-image-watermark.md | markdown | 6.3 KB |
| reference/adjust-image-color.md | markdown | 3.5 KB |
| reference/compress-image.md | markdown | 4.8 KB |
| reference/crop-image.md | markdown | 5.8 KB |
| reference/enhance-image.md | markdown | 4.4 KB |
| reference/erase-image.md | markdown | 3.9 KB |
| reference/evaluate-image-quality.md | markdown | 7.9 KB |
| reference/face-blur-image.md | markdown | 4.1 KB |
| reference/families/image-size-reduction.md | markdown | 752 B |
| reference/flip-image.md | markdown | 2.9 KB |
| reference/gaussian-blur-image.md | markdown | 3.2 KB |
| reference/image-ocr.md | markdown | 3.5 KB |
| reference/invert-image.md | markdown | 2.8 KB |
| reference/mosaic-image.md | markdown | 5.2 KB |
| reference/probe-image-metadata.md | markdown | 3.6 KB |
| reference/remove-image-background.md | markdown | 5.2 KB |
| reference/resize-image.md | markdown | 5.1 KB |
| reference/rotate-image.md | markdown | 3.4 KB |
| reference/round-corner-image.md | markdown | 3.7 KB |
| reference/sharpen-image.md | markdown | 3.0 KB |
| reference/slim-image.md | markdown | 3.9 KB |
| reference/smart-crop-image.md | markdown | 3.9 KB |
reference/face-blur-image.md
View on GitHub# 图像人脸打码
## 能力用途
自动检测图片中的所有人脸区域并进行马赛克处理,用于一键保护图片中的人脸隐私。支持社交平台内容审核、街景或监控画面脱敏、新闻媒体素材处理以及 AI 训练数据集脱敏等批量人脸隐私保护场景。
## 参数填写规则
- 提交一张公网可访问图片 Url,自动检测并对图中所有人脸做马赛克打码;可选配置打码形状、像素格大小、检测置信度阈值与输出格式。 可选参数仅在用户明确指定,或可从用户意图准确确定时填写;不得伪造。不能准确确定时省略,确为正确完成任务所必需时先向用户澄清。
## Cloud
### 命令与生命周期
- 命令:`mediakit-cli image face-blur-image`
- 生命周期:同步
- 返回方式:直接返回 Cloud 业务结果。
### 参数
| 参数路径 | CLI flag | 类型 | 必填 | 默认值 | 枚举/范围/结构 | 说明 |
| --- | --- | --- | --- | --- | --- | --- |
| `blur_shape` | `--blur-shape` | string | 否 | "circle" | 枚举: ["circle","rectangle"] | 人脸模糊区域的形状,支持 circle 或 rectangle:circle 表示圆形,rectangle 表示矩形;默认 circle。 |
| `face_detect_thresh` | `--face-detect-thresh` | number | 否 | 0.9 | 大于: 0;小于: 1 | 人脸检测置信度阈值必须大于 0 且小于 1;越高过滤越严格,过低可能误判非人脸区域,过高可能漏检人脸;默认 0.9。 |
| `image_url` | `--image-url` | string | 是 | - | - | 待打码的图像 URL,支持公网 HTTP/HTTPS URL、本地文件路径和火山引擎对象存储 tos:// 三种输入协议;支持 .png、.jpg、.jpeg、.webp、.avif 等主流图像格式,不支持动图。建议图像文件大小不超过 35 MB;图片文件过大可能导致处理失败;图片宽度和高度的乘积不得超过 4 亿像素。 |
| `mosaic_step` | `--mosaic-step` | integer | 否 | 12 | 最小值: 5;最大值: 100 | 马赛克像素格大小,单位 px,必须为正整数;越大,马赛克颗粒越大且脱敏强度越高;建议范围为 [5, 100];默认 12。 |
| `output_format` | `--output-format` | string | 否 | "webp" | 枚举: ["png","jpeg","webp"] | 输出图片格式,支持 png、jpeg 或 webp;默认 webp。 |
### 调用示例
```bash
mediakit-cli image face-blur-image \
--image-url <image_url>
```
仅使用用户真实输入替换占位符;可选 flag 遵守参数填写规则,不得编造 URL、文件、枚举或业务参数。
### 返回结果
| 字段路径 | 类型 | 必含 | 模式 | 说明 |
| --- | --- | --- | --- | --- |
| `face_count` | integer | 否 | Cloud | 检测到并已打码的人脸数量;为 0 表示未检测到人脸且原图未做处理;大于 0 表示已对对应数量的人脸完成打码。 |
| `face_location` | array<object> | 否 | Cloud | 每张检测出的人脸信息对象数组;未检测到人脸时为空数组。 |
| `face_location[].bottom_right_x` | integer | 否 | Cloud | 人脸检测框右下角横坐标,单位 px。 |
| `face_location[].bottom_right_y` | integer | 否 | Cloud | 人脸检测框右下角纵坐标,单位 px。 |
| `face_location[].confidence` | number | 否 | Cloud | 人脸检测置信度,必须大于 0 且小于 1。 |
| `face_location[].top_left_x` | integer | 否 | Cloud | 人脸检测框左上角横坐标,单位 px。 |
| `face_location[].top_left_y` | integer | 否 | Cloud | 人脸检测框左上角纵坐标,单位 px。 |
| `image_format` | string | 否 | Cloud | 处理后图片格式。 |
| `image_height` | integer | 否 | Cloud | 处理后图片高度,单位 px。 |
| `image_size` | integer | 否 | Cloud | 处理后图片大小,单位字节。 |
| `image_url` | string | 否 | Cloud | 人脸打码后的图片文件下载地址,有效期为 24 小时,务必及时保存对应的产物。 |
| `image_width` | integer | 否 | Cloud | 处理后图片宽度,单位 px。 |
### 机器合同
以下命令只读取本模式的实时 help/schema,不发起业务调用:
```bash
mediakit-cli image face-blur-image --help
mediakit-cli image face-blur-image --schema
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |