image processing project using python
Image processing project using python import cv2 import numpy as np from tkinter import Tk, Button, Canvas, filedialog, Label from PIL import Image, ImageTk import matplotlib.pyplot as plt original_image = None processed_image = None def open_image(): global original_image, processed_image file_path = filedialog.askopenfilename(filetypes=[("Image Files", "*.png;*.jpg;*.jpeg;*.bmp")]) if file_path: original_image = cv2.imread(file_path) processed_image = original_image.copy() display_image(original_image) def save_image(): if processed_image is not None: file_path = filedialog.asksaveasfilename(defaultextension=".png", filetypes=[("PNG files", "*...