A comprehensive image processing project developed for the Digital Image Processing course at An-Najah National University.
- Ameed Othman (12220692)
- Yahya Musmar (12112501)
This project demonstrates various digital image processing techniques using OpenCV and Python. It's divided into two main parts:
- Part 1: A sequence of image processing operations applied to a static image
- Part 2: A real-time camera filter application with multiple effect options
- Python 3.x
- OpenCV (
cv2
) - NumPy
- Matplotlib
main.py
- Image loading and watermarkingstep1_grayscale_stats.py
- Grayscale conversion and statisticsstep2_brightness_modification.py
- Brightness adjustmentstep3_brightness_correction.py
- Histogram equalizationstep4_add_noise.py
- Salt-and-pepper noise additionstep5_noise_filtering.py
- Mean and median filteringstep6_sharpening.py
- Image detail enhancement
main.py
- Camera filter application with multiple modesedge_detection.py
- Canny edge detection implementationgrayscale_quantization.py
- Intensity level reductioncontrast_enhancement.py
- Histogram-based contrast improvementsoft_appearance.py
- Bilateral filtering for soft appearancecartoon_filter.py
- Stylized cartoon effect
- Grayscale conversion and statistical analysis
- Brightness modification with parameter control
- Histogram equalization for contrast enhancement
- Salt-and-pepper noise simulation and removal
- Comparison of mean and median filters
- Image sharpening with custom kernels
- Real-time camera effects with 6 different filter modes
Run each script in sequence (1-6) to see the step-by-step image processing:
python part1/main.py
python part1/step1_grayscale_stats.py
...
Run the camera application:
python part2/main.py
Controls:
- Press 0-5 to switch between filter modes
- Press Q to quit
Available filters:
- Normal view (0)
- Edge detection (1)
- Grayscale quantization (2)
- Contrast enhancement (3)
- Soft appearance (4)
- Cartoon filter (5)
For detailed information about the implementation, results, and analysis, refer to the project report PDF.