๐ An Open Source Digital Image Forensics Toolkit
- ๐ฏ Introduction
- ๐ Quick Start
- โก Features
- ๐ธ Screenshots
- ๐ป Installation
- ๐ณ Docker Setup
- ๐ Documentation
- ๐ค Contributing
"Forensic Image Analysis is the application of image science and domain expertise to interpret the content of an image and/or the image itself in legal matters." - Scientific Working Group on Imaging Technologies
LOOK-DGC is a comprehensive digital image forensics toolkit developed by Gopichand. It provides a fully integrated environment for analyzing digital images to detect tampering, forgery, and manipulation.
- ๐ Open Source: Free and accessible to everyone
- ๐ Educational: Learn digital forensics techniques
- ๐ฌ Research-Ready: Implement latest algorithms from research papers
- ๐ก๏ธ Professional: Used by investigators and security professionals
- ๐ Community-Driven: Democratizing image forensics tools worldwide
# Clone the repository
git clone https://github.com/Gooichand/LOOK-DGC.git
cd LOOK-DGC
# For platform-specific Docker setup instructions, see DOCKER_README.md# Clone and setup
git clone https://github.com/Gooichand/LOOK-DGC.git
cd LOOK-DGC
# Windows
Launch-Look-DGC.bat
# Linux/macOS
./launch-look-dgc.sh- ๐จ Qt-based GUI: Professional multi-window management
- ๐ Format Support: JPEG, PNG, TIFF, BMP, WebP, PGM, PFM, GIF
- โก Responsive Viewer: Real-time pan, zoom, and navigation
- ๐ Interactive Analysis: Live algorithm parameter adjustment
- ๐ Export Capabilities: Visual and textual result export
- โ Built-in Help: Comprehensive tutorials and explanations
LOOK-DGC includes an AI Solutions tool group featuring TruFor, an AI-based image forensic tool.
TruFor is designed to:
- Detect image manipulations using deep learning methods
- Complement traditional forensic tools with data-driven analysis
- Provide probabilistic insights rather than deterministic decisions
๐ General Tools
- ๐ท Original Image: Unaltered reference display
- ๐ File Digest: Cryptographic hashes and file information
- โ๏ธ Hex Editor: Raw byte-level file examination
- ๐ Similar Search: Online reverse image search integration
๐ Metadata Tools
- ๐๏ธ Header Structure: Interactive file structure visualization
- ๐ EXIF Full Dump: Complete metadata extraction and analysis
- ๐ผ๏ธ Thumbnail Analysis: Embedded thumbnail comparison
- ๐ Geolocation Data: GPS coordinate mapping and visualization
๐ฌ Inspection Tools
- ๐ Enhancing Magnifier: Forgery-detection enhanced magnification
- ๐ Channel Histogram: RGB/composite histogram analysis
- โ๏ธ Global Adjustments: Brightness, hue, saturation manipulation
โ๏ธ Reference Comparison: Synchronized dual-image comparison
๐จ Color Analysis
- ๐ RGB/HSV Plots: Interactive 2D/3D color space visualization
- ๐ Space Conversion: Multiple color space transformations
- ๐งฎ PCA Projection: Principal component analysis projection
- ๐ Pixel Statistics: Comprehensive per-pixel statistical analysis
๐ก Noise Analysis
- ๐ Noise Separation: Multi-type noise component extraction
- ๐ Min/Max Deviation: Block-based statistical deviation analysis
- ๐ข Bit Plane Analysis: Individual bit layer examination
- ๐ PRNU Identification: Camera sensor pattern noise analysis
๐ท JPEG Analysis
- ๐ Quality Estimation: Quantization table analysis
- โก Error Level Analysis: Compression level difference visualization
- ๐ Multiple Compression: Machine learning compression detection
- ๐ป JPEG Ghost Maps: Compression artifact trace visualization
โ ๏ธ Tampering Detection
- ๐ Copy-Move Forgery: Feature descriptor cloning detection
- โ๏ธ Composite Splicing: DCT statistical splicing detection
- ๐ Image Resampling: 2D interpolation trace detection
- ๐๏ธ Contrast Enhancement: Color distribution manipulation analysis
๐ง Additional Tools
- ๐ Median Filtering: Nonlinear filtering trace detection
- ๐ก Illuminant Mapping: 3D surface light direction estimation
- ๐ด Dead/Hot Pixels: Sensor defect detection and correction
- ๐๏ธ Stereogram Decoder: Hidden 3D image extraction
LOOK-DGC supports generating detailed PDF reports from analysis tools that provide structured data. The following tools include PDF export capabilities:
- ๐ท Original Image: Baseline image display with metadata summary
- ๐ Histogram Analysis: Statistical data, channel information, and histogram plot visualization
- ๐๏ธ Header Structure: File header analysis summary and metadata overview
- ๐ Noise Analysis: Noise estimation parameters, processing settings, and processed image
To generate a PDF report, select the desired analysis tools and use the "Generate Report" option from the File menu.
Below is an overview of the main folders and files in the LOOK-DGC repository to help new contributors understand the codebase easily:
LOOK-DGC/
โโโ gui/ # Main GUI application source code
โ โโโ modules/ # Core forensic analysis modules
โ โโโ ui/ # Qt UI layouts and components
โโโ images/ # Sample input images
โโโ output/ # Generated analysis results
โโโ demo-ss/ # Screenshots for README
โโโ docker/ # Docker configuration files
โโโ Launch-LOOK-DGC.bat # Windows launcher
โโโ launch-look-dgc.sh # Linux/macOS launcher
โโโ docker-compose.yml # Docker Compose config
โโโ Dockerfile # Docker build file
โโโ LICENSE # MIT License
โโโ README.md # Project documentation
โโโ HOW_IT_WORKS.md # Forensic workflow explanation
## ๐ธ Screenshots
<p align="center">
<img src="Demo-Ss/0_gen.png" alt="General Tools" width="800"/>
<br><b>๐ General Tools</b>: Original Image, File Digest, Hex Editor, Similar Search
</p>
<p align="center">
<img src="Demo-Ss/2_ins.png" alt="Visual Inspection" width="800"/>
<br><b>๐ฌ Visual Inspection</b>: Magnifier, Histogram, Reference Comparison
</p>
<p align="center">
<img src="Demo-Ss/3_detai.png" alt="Detail Analysis" width="800"/>
<br><b>๐ฏ Detail Analysis</b>: Gradient, Edge Filter, Wavelet, Frequency Split
</p>
<p align="center">
<img src="Demo-Ss/4_clour.png" alt="Color Analysis" width="800"/>
<br><b>๐จ Color Analysis</b>: RGB/HSV Plots, Space Conversion, PCA, Statistics
</p>
<p align="center">
<img src="Demo-Ss/5_noise.png" alt="Noise Analysis" width="800"/>
<br><b>๐ก Noise Analysis</b>: Noise Separation, Min/Max Deviation, Bit Planes
</p>
<p align="center">
<img src="Demo-Ss/6_jpeg.png" alt="JPEG Analysis" width="800"/>
<br><b>๐ท JPEG Analysis</b>: Quality Estimation, Error Level Analysis
</p>
<p align="center">
<img src="Demo-Ss/7_tampe.png" alt="Tampering Detection" width="800"/>
<br><b>โ ๏ธ Tampering Detection</b>: Copy-Move, Splicing, Resampling, Filtering
</p>
---
## ๐ป Installation
### ๐ Prerequisites
- **๐ Python 3.11+**
- **๐พ 4GB+ RAM** (recommended)
- **๐ฅ๏ธ Windows/Linux/macOS**
### ๐ Method 1: Quick Start (Recommended)
#### Windows
```cmd
git clone https://github.com/Gooichand/LOOK-DGC.git
cd LOOK-DGC
Launch-Look-DGC.bat
git clone https://github.com/Gooichand/LOOK-DGC.git
cd LOOK-DGC
chmod +x launch-look-dgc.sh
./launch-look-dgc.shgit clone https://github.com/Gooichand/LOOK-DGC.git
cd LOOK-DGC# Using venv
python -m venv .venv
# Activate (Windows)
.venv\Scripts\activate.bat
# Activate (Linux/macOS)
source .venv/bin/activatecd gui
pip install -r requirements.txtAlternatively, you can use the automated dependency checker:
python check_deps.pyOr validate dependencies before launching:
python validate_deps.pypython look-dgc.pyIf you encounter Qt platform plugin errors:
sudo apt install -y libxcb-cursor-devFor Linux, Windows, and macOS, please refer to DOCKER_README.md for platform-specific Docker instructions.
- ๐ How It Works - Complete analysis guide and workflows
- ๐ณ Docker Setup Guide - Container deployment instructions
- ๐ License - MIT License terms and conditions
- ๐ Research Papers: Implementation references in bibliography
- ๐ฏ Practical Examples: Try analyzing known edited vs. original images
- ๐ฌ Algorithm Details: Source code documentation and comments
- ๐ Community: Join discussions and contribute improvements
LOOK-DGC includes automated tests to ensure code quality and functionality.
# Navigate to tests directory
cd tests
# Install testing requirements
pip install -r test_requirements.txt# Run all unit tests
python -m pytest unit/ -v
# Run with coverage report
python -m pytest unit/ -v --cov=../gui --cov-report=html
# Run specific test file
python -m pytest unit/test_utility.py -v# Run integration tests
python -m pytest integration/ -v# Run complete test suite
python -m pytest -vTest coverage reports are generated in the tests/htmlcov/ directory when running with --cov-report=html.
GitHub Actions workflows automatically run tests on:
- Every push to main and develop branches
- Every pull request
- Multiple operating systems (Ubuntu, Windows)
- Multiple Python versions (3.11, 3.12)
View test results and coverage on GitHub Actions.
We welcome contributions from the community! Here's how you can help:
- Use GitHub Issues to report bugs
- Include system information and steps to reproduce
- Attach sample images if relevant (ensure no sensitive data)
- Suggest new analysis algorithms
- Propose UI/UX improvements
- Request additional file format support
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Submit a pull request
- Improve existing documentation
- Add tutorials and examples
- Translate to other languages
This project implements algorithms from cutting-edge research papers in digital image forensics:
- Image Resampling: "Exposing Digital Forgeries by Detecting Traces of Re-sampling" (Popescu & Farid)
- JPEG Ghosts: "Exposing Digital Forgeries from JPEG Ghosts" (H. Farid)
- Noise Analysis: "Using noise inconsistencies for blind image forensics" (Mahdian & Saic)
- Noiseprint: "A CNN-based camera model fingerprint" (Cozzolino & Verdoliva)
- ๐ Python: Core programming language
- ๐๏ธ OpenCV: Computer vision and image processing
- ๐งฎ NumPy/SciPy: Mathematical computations and algorithms
- ๐ค TensorFlow: Machine learning and AI-powered detection
- ๐ฅ๏ธ PySide6: Modern Qt-based user interface
- ๐ณ Docker: Containerization and easy deployment
๐ LOOK-DGC - Making Digital Image Forensics Accessible to Everyone
Developed with โค๏ธ by Gopichand
โญ Star this project โข
๐ Report Bug โข
๐ก Request Feature
Ready to become a digital detective? Clone the repository and start your first investigation! ๐ต๏ธโ๏ธ