返回顶部
h

humanize-image图像人性化

Detect and remove AI fingerprints from AI-generated images. Strip metadata, add film grain, recompress, and bypass AI image detectors. Works with Midjourney, DALL-E, Stable Diffusion, Flux output.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
498
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

humanize-image

AI图像去指纹技能

用于从AI生成图像中移除AI检测模式的综合命令行工具。通过多种处理技术,将可检测的AI图像转换为类似人眼拍摄的照片。

支持模型: Midjourney、DALL-E 3、Stable Diffusion、Flux、Firefly、Leonardo等。

快速开始

bash

基础处理(中等强度)


python scripts/deai.py input.png

指定输出文件

python scripts/deai.py input.png -o output.jpg

调整处理强度

python scripts/deai.py input.png --strength heavy

仅剥离元数据(最快)

python scripts/deai.py input.png --no-metadata

批量处理目录

python scripts/deai.py input_dir/ --batch

纯Bash版本(无需Python)

bash scripts/deai.sh input.png output.jpg

工作原理

AI生成图像包含多个检测层:

检测向量

  1. 1. 元数据:显示生成工具的EXIF标签、C2PA水印
  2. 频域:扩散模型特有的DCT系数模式
  3. 像素模式:过度平滑、不自然的噪声分布
  4. 视觉特征:完美光照、重复纹理

处理流程

我们的去指纹流程包含7个转换阶段

输入 → 元数据剥离 → 颗粒添加 → 色彩调整 →
模糊/锐化 → 缩放循环 → JPEG重新压缩 → 最终元数据清理 → 输出

阶段详情

阶段目的技术
元数据剥离移除EXIF/C2PA/JUMBF标签ExifTool
颗粒添加
添加相机传感器噪声 | 泊松/高斯噪声叠加 | | 色彩调整 | 打破色彩分布模式 | 对比度/饱和度/亮度微调 | | 模糊/锐化 | 干扰边缘检测模式 | 高斯模糊 + 反锐化掩膜 | | 缩放循环 | 引入重采样伪影 | 缩小 → 使用Lanczos放大 | | JPEG重新压缩 | 添加压缩伪影 | 质量75 → 95循环 | | 最终清理 | 确保无元数据泄露 | 重新运行ExifTool |

处理强度

根据检测风险与质量权衡选择强度:

强度描述成功率质量损失
light最小处理,保持质量35-45%极低
medium
平衡(默认) | 50-65% | 低 |
| heavy | 激进处理 | 65-80% | 中等 |

成功率 = 通过常见AI检测器(Hive、Illuminarty、AI or Not)的图像百分比



使用示例

单张图像处理

bash

默认中等强度


python scripts/deai.py ai_portrait.png

高质量图像的轻度处理

python scripts/deai.py artwork.png --strength light -o clean_artwork.jpg

顽固检测的重度处理

python scripts/deai.py midjourney_out.png --strength heavy

批量处理

bash

处理整个目录


python scripts/deai.py ./ai_images/ --batch -o ./cleaned/

指定强度的批量处理

python scripts/deai.py ./gallery/*.png --batch --strength heavy

仅元数据模式

bash

仅剥离元数据(即时完成,无质量损失)


python scripts/deai.py image.jpg --no-metadata

使用Bash版本

bash

无需Python/Pillow,纯ImageMagick + ExifTool


bash scripts/deai.sh input.png output.jpg

指定强度

bash scripts/deai.sh input.png output.jpg heavy

依赖项

必需

  • - ImageMagick(7.0+)— 图像处理引擎
  • ExifTool — 元数据操作
  • Python 3.7+(用于deai.py)
  • Pillow(Python图像库)
  • NumPy(用于deai.py)

检查安装

bash
bash scripts/check_deps.sh

这将验证所有依赖项,并在缺失时提供安装命令。

手动安装

Debian/Ubuntu:
bash
sudo apt update
sudo apt install -y imagemagick libimage-exiftool-perl python3 python3-pip
pip3 install Pillow numpy

macOS:
bash
brew install imagemagick exiftool python3
pip3 install Pillow numpy

Fedora/RHEL:
bash
sudo dnf install -y ImageMagick perl-Image-ExifTool python3-pip
pip3 install Pillow numpy



命令参考

deai.py(Python版本)

python scripts/deai.py [options]

参数:
input 输入图像文件或目录(批量模式)

选项:
-o, --output FILE 输出文件路径(默认:input_deai.jpg)
--strength LEVEL 处理强度:light|medium|heavy(默认:medium)
--no-metadata 仅剥离元数据,跳过图像处理
--batch 处理整个目录
-q, --quiet 抑制进度输出
-v, --verbose 显示详细处理步骤

示例:
python scripts/deai.py image.png
python scripts/deai.py image.png -o clean.jpg --strength heavy
python scripts/deai.py folder/ --batch

deai.sh(Bash版本)

bash scripts/deai.sh [strength]

参数:
input 输入图像文件
output 输出文件路径
strength light|medium|heavy(默认:medium)

示例:
bash scripts/deai.sh input.png output.jpg
bash scripts/deai.sh input.png output.jpg heavy



理解检测

常见AI检测器

检测器方法绕过率
Hive Moderation深度学习模型50-70%(中等)
Illuminarty
计算机视觉分析 | 60-75%(中等) | | AI or Not | 二分类 | 55-70%(中等) | | SynthID | 像素级水印 | 35-50%(重度) | | C2PA Verify | 元数据检查 | 100%(元数据剥离) |

此技能无法做到的事项

非万能解决方案:

  • - 无法保证100%绕过所有检测器
  • 高级检测器(SynthID)需要更激进的处理
  • 可能出现新的检测方法

限制:

  • - 处理会降低图像质量(必要的权衡)
  • 某些检测器使用多层检测(元数据+像素+频率)
  • 极度激进的处理可能引入可见伪影

它能做到:

  • - 显著降低检测概率(40-80%)
  • 移除元数据水印(100%有效)
  • 保持合理的视觉质量
  • 批量处理整个集合



验证工作流程

  1. 1. 处理图像:
bash python scripts/deai.py ai_image.png -o clean.jpg --strength medium
  1. 2. 在多个检测器上测试:
- Hive Moderation - Illuminarty - AI or Not
  1. 3. 如果仍被检测到:
- 增加强度:--strength heavy - 尝试多次处理 - 手动修饰(在照片编辑器中添加轻微噪声)
  1. 4. 质量检查:
- 比较原始图像与处理后的图像 - 确保无可见伪影 - 验证颜色/细节是否保留

高级用法

自定义处理流程

编辑scripts/deai.py以调整参数:

python

噪声强度(约第80行)


noise = np.random.normal(0, 3, img_array.shape) # 将3改为5以增加颗粒感

对比度调整(约第95行)

enhancer.enhance(1.05) # 将1.05改为1.08以增强效果

JPEG质量(约第120行)

img.save(temp_path, JPEG, quality=80) # 将80改为70以增加压缩

结合外部工具

bash

步骤1:去指纹


python scripts/deai.py ai_gen.png -o step1.jpg

步骤2:添加微妙纹理叠加(GIMP/Photoshop)

(手动步骤)

步骤3:重新剥离元数据

exiftool -all= step1_edited.jpg

最佳实践

社交媒体使用

  • - 使用

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 humanize-image-1776318192 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 humanize-image-1776318192 技能

通过命令行安装

skillhub install humanize-image-1776318192

下载

⬇ 下载 humanize-image v1.0.0(免费)

文件大小: 20.59 KB | 发布时间: 2026-4-16 18:14

v1.0.0 最新 2026-4-16 18:14
Initial release of humanize-image: Remove AI fingerprints from images to bypass AI detectors.

- Detects and removes metadata (EXIF, C2PA, etc.) from AI-generated images.
- Applies film grain, color tweaks, resampling, blur/sharpen, and JPEG recompression to break AI detection patterns.
- Supports models including Midjourney, DALL-E, Stable Diffusion, and others.
- Offers three processing strengths (light, medium, heavy) for quality vs. detection risk balance.
- Includes both Python (Pillow/NumPy) and pure Bash (ImageMagick/ExifTool) processing options.
- Enables batch processing and metadata-only stripping modes.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部