# Tampering-Detection-and-Localization
**Repository Path**: lwgaoxin/Tampering-Detection-and-Localization
## Basic Information
- **Project Name**: Tampering-Detection-and-Localization
- **Description**: Code for Paper "Image Forgery Detection and Localization via a Reliability Fusion Map"
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 1
- **Created**: 2020-12-23
- **Last Updated**: 2025-08-29
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Reliability Fusing Map (RFM)
This repository is implementation of "Image Tampering Detection and Localization via Reliability Fusion Map” (RFM). The main contributions are summarized as follows (1) obtaining higher accuracy; (2) reducing computational complexity of clustering; (3) improving localization fineness from 64 x 64 to 32 x 32.
# Citation
```
@article{yao2020image,
title={Image Forgery Detection and Localization via a Reliability Fusion Map},
author={Yao, Hongwei and Xu, Ming and Qiao, Tong and Wu, Yiming and Zheng, Ning},
journal={Sensors},
volume={20},
number={22},
pages={6668},
year={2020},
publisher={Multidisciplinary Digital Publishing Institute}
}
```
# Prerequisites
* tensorflow == 1.7.0
* pandas == 0.23.4
* scipy == 1.1.0
* sklearn == 0.19.2
* matplotlib == 2.2.3
* Pillow == 5.2.0
# Usage
* Run pretrain model:
1. You can download pretrain model at: [Baidu disk](https://pan.baidu.com/s/1mYEHwtQdIUb5vugruUppRA), password=`mxqr`
[Google drive](https://drive.google.com/file/d/1ULTmA1Ef5Y8NcOc1bSF8Ksj7rapaN0zO/view?usp=sharing)
put unzip folder into `code/model/{scope_name}`, see `{scope_name}` in `code.config.py`
2. Run pre-train test using command:
> python main.py --code.config --action test
where `code.config.py` is config file including CNN architecture, dataset name, and so on.
The CNN module pre-train output is a csv file, which format with:
`{f1,f2,f3...,predict_label,true_label,quality_factory}`, where f1,f2... is CNN confidence of each camera model.
3. Post-train in `experiment` folder