An open API service indexing awesome lists of open source software.

https://github.com/n4vrl0s3/image-processing

This repository contains various image processing projects and examples implemented in Python. It showcases techniques such as filtering, edge detection, image transformation, and more using popular libraries like OpenCV or PIL. Perfect for beginners and developers exploring the fundamentals of image processing and computer vision.
https://github.com/n4vrl0s3/image-processing

image-processing matplotlib numpy opencv-python

Last synced: 10 days ago
JSON representation

This repository contains various image processing projects and examples implemented in Python. It showcases techniques such as filtering, edge detection, image transformation, and more using popular libraries like OpenCV or PIL. Perfect for beginners and developers exploring the fundamentals of image processing and computer vision.

Awesome Lists containing this project

README

        

# Image Processing

This repository contains the source code for an image processing project demonstrating the fundamental concepts and techniques in image manipulation. This project is designed to help beginners understand how to process and transform images using Python and OpenCV.



## Purpose of This Repository

To provide a foundational understanding of image processing and demonstrate how to apply various transformations and operations on images.



## Demonstration

Below is a demonstration of a simple Python code structure for image processing:

```python
import cv2
import numpy as np

# Load an image
image = cv2.imread('sample.jpg')

# Convert to grayscale
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)

# Create a binary image using thresholding
_, binary_image = cv2.threshold(gray_image, 128, 255, cv2.THRESH_BINARY)

# Apply a translation
rows, cols = image.shape[:2]
translation_matrix = np.float32([[1, 0, 50], [0, 1, 50]])
translated_image = cv2.warpAffine(image, translation_matrix, (cols, rows))

# Display the results
cv2.imshow('Original Image', image)
cv2.imshow('Grayscale Image', gray_image)
cv2.imshow('Binary Image', binary_image)
cv2.imshow('Translated Image', translated_image)

cv2.waitKey(0)
cv2.destroyAllWindows()
```



## Features

- Image loading and displaying
- Grayscale conversion
- Binary thresholding
- Image translation



## Technologies Used

- Python
- OpenCV



## Project Setup

1. **Clone this Repository**

```bash
git clone https://github.com/n4vrl0s3/Image-Processing.git
```

2. **Install the required Python packages**

```bash
pip install opencv-python numpy matplotlib
```



## Steps to Run

1. **Ensure you have the required Python packages installed**
2. **Run the Python script in your preferred IDE or terminal**



## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.