githubEdit

Computer Vision

Image Analysis for Machine Learning

Investigate images to get sensitive/secret data or sensitive information hidden in the images.

In advance, load an image using Pillow (PIL).

import numpy as np
from PIL import Image

img = Image.open("example.png")

Basic Information

# Filename
img.filename

# Image information
img.info

# Image format (PNG, JPG, etc.)
img.format

# Color mode (RPG, CMYK, etc.)
img.mode

# Image size
img.size

# Bytes
img.tobytes()

# Pixels
np.array(img.getdata())

Plot Images

Hidden Information

Find hidden data in the image by slightly changing.

Resize Image & Get Bytes

XOR Image Bytes

Last updated