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.
- Host: GitHub
- URL: https://github.com/n4vrl0s3/image-processing
- Owner: n4vrl0s3
- License: gpl-3.0
- Created: 2025-04-29T04:50:05.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-29T04:52:05.000Z (about 2 months ago)
- Last Synced: 2025-06-09T09:55:28.618Z (16 days ago)
- Topics: image-processing, matplotlib, numpy, opencv-python
- Language: Jupyter Notebook
- Homepage:
- Size: 12.8 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
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.