This project provides a Python script designed to process AI-generated images and make them appear indistinguishable from real human-taken photographs. The script applies various techniques such as:
- Sensor Noise Addition: Simulates imperfections found in real camera sensors.
- Motion Blur Simulation: Introduces slight blurring to mimic real-world movement.
- Lens Distortion: Applies natural optical distortions.
- Vignetting Effects: Adds subtle darkening around the edges.
- Color Adjustments: Introduces slight variations in color, brightness, and contrast.
- Pixel Scrambling: Reorders small sections of the image to break AI detection patterns.
- Hidden Watermarking: Embeds low-opacity patterns to simulate real photo artifacts.
- EXIF Metadata Injection: Adds realistic camera data such as model, lens, and exposure.
Ensure you have Python 3 installed, then install the required dependencies using:
pip install -r requirements.txt
To process an AI-generated image and make it look more human-like, run the script with:
python process_image.py
- Place your AI-generated image in the project directory and rename it to
ai_generated_image.jpg
. - Run the script and check the output in
realistic_human_photo.jpg
.
You can adjust various parameters in the script, such as:
kernel_size
for motion blurresize_and_interpolate
method choicesrandom noise intensity
Modify these values in the process_image
function to fine-tune the results.
Refer to requirements.txt
for the full list of required packages.
This script is for research and educational purposes only. Any misuse of the tool for deceptive or fraudulent activities is strongly discouraged.
This project is licensed under the MIT License.