Skip to content

A simple Python project for image generation and basic processing using PIL, NumPy, and Matplotlib. Creates grayscale images with geometric shapes as part of an Image Processing course.

Notifications You must be signed in to change notification settings

KhaledYaish0/image-processing-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–ΌοΈ Image Processing Project (Course Assignment)

A simple Python project for image creation and basic processing using PIL, NumPy, and Matplotlib.
This project generates a grayscale image with geometric shapes and saves it as an output file, serving as an introductory exercise in image processing.


πŸ“¦ Features

  • Image generation: Creates a 100Γ—100 grayscale image
  • Shape drawing: Adds white rectangles on a black background using ImageDraw
  • File saving: Saves generated image (simple_image.png)
  • Visualization: Uses Matplotlib to display the image

πŸ› οΈ Tech Stack

  • Python 3.x
  • NumPy (array operations)
  • Pillow (PIL) (image creation & drawing)
  • Matplotlib (visualization)

πŸ“‚ Project Structure

Image_OpenCV_Project/

β”œβ”€β”€ hw1.py # Main script (image generation & drawing)

β”œβ”€β”€ README.md # Documentation

└── simple_image.png # Output image (generated after running)


▢️ How to Run

  1. Clone the repository:
    git clone https://github.com/KhaledYaish0/Image_OpenCV_Project.git
    cd Image_OpenCV_Project

2.Install dependencies:

pip install numpy pillow matplotlib
  1. Run the project:
python hw1.py
  1. The script will generate and save simple_image.png. It will also open a Matplotlib window to display the result.\

πŸ“Š Example Output

A 100Γ—100 grayscale image with four white rectangles on a black background.

πŸ“œ License

For educational use (Image Processing course project).

About

A simple Python project for image generation and basic processing using PIL, NumPy, and Matplotlib. Creates grayscale images with geometric shapes as part of an Image Processing course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages