# image_checker **Repository Path**: dx2018/image_checker ## Basic Information - **Project Name**: image_checker - **Description**: 检测图片是否被修改 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-25 - **Last Updated**: 2026-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 图片篡改检测器 一款基于Python开发的桌面应用程序,用于检测图片是否被人为编辑或篡改。 ## 功能特性 - **多种检测方法**:集成6种图像取证技术 - ELA错误级别分析 - 检测重压缩痕迹 - 噪声一致性分析 - 检测拼接痕迹 - CFA色彩滤波检测 - 检测伪造区域 - 重采样检测 - 检测缩放/旋转 - 克隆复制检测 - 检测复制-移动 - 元数据分析 - EXIF信息分析 - **批量处理**:支持一次性检测多张图片 - **详细报告**:生成易读的HTML检测报告 - **友好界面**:支持拖拽导入、中文界面 ## 快速使用 1. 运行 `dist/ImageForensicsChecker.exe` 2. 点击"导入图片"或拖拽图片到窗口 3. 点击"开始检测" 4. 查看检测结果,可导出HTML报告 ## 开发环境 - Python 3.10+ - PyQt5 5.15.10 - OpenCV - NumPy - SciPy - Pillow - scikit-image ## 安装依赖 ```bash pip install -r requirements.txt ``` ## 运行程序 ```bash python main.py ``` ## 打包说明 ### 方式一:直接使用(推荐) 项目已预打包好,直接运行 `dist/ImageForensicsChecker.exe` 即可。 ### 方式二:使用 PyInstaller 打包 如果需要重新打包,执行以下步骤: 1. **安装依赖** ```bash pip install pyinstaller ``` 2. **执行打包** ```bash pyinstaller --onefile --windowed --name ImageForensicsChecker main.py ``` 3. **打包参数说明** | 参数 | 说明 | |------|------| | `--onefile` | 打包成单个可执行文件 | | `--windowed` / `-w` | 隐藏控制台窗口 | | `--name` | 指定输出文件名 | 4. **打包完成后** - 打包后的可执行文件在 `dist/ImageForensicsChecker.exe` ### 方式三:使用 Nuitka 打包(更小体积,但需要C编译器) Nuitka 打包体积更小,但需要安装 Visual Studio C++ 编译器: 1. **安装 Visual Studio Build Tools** - 下载地址:https://visualstudio.microsoft.com/visual-cpp-build-tools/ - 安装时选择"使用 C++ 的桌面开发" 2. **安装 Nuitka** ```bash pip install nuitka ``` 3. **执行打包** ```bash python -m nuitka --standalone --onefile --windows-disable-console --lto=auto main.py ``` ### 优化打包体积 1. 排除不需要的模块: ```bash pyinstaller --onefile --windowed --exclude-module=matplotlib --exclude-module=scipy.linalg --exclude-module=tkinter --name ImageForensicsChecker main.py ``` 2. 使用 UPX 压缩(需要安装 UPX): ```bash pyinstaller --onefile --windowed --upx-dir=path/to/upx --name ImageForensicsChecker main.py ``` ## 注意事项 - 本工具仅作为辅助参考,不能作为法律证据 - 检测结果基于图像特征分析,不保证100%准确 - 某些正常的后期处理可能被误判为异常 ## 许可证 MIT License