About Me

My photo
Vijayapur, Karnataka, India
Learn with joy and Grow with values (Happy Learning)

Monday, 24 August 2026

Day-1 24-08-2026 , Hands on material on basic of digital image processing in Python using OpenCV package.

BLDEAS V. P. Dr. P. G. Halakatti College of Engineering & Technology, Vijayapura

 FACULTY DEVELOPMENT PROGRAMME (FDP)

“Advances in Image Processing and its Applications”

Jointly Organized by

                           Department of CSE  and Department of Information Science

                                                            (24-08-2026 to 30-08-2026)



Dear Participants,

All the docs includes Python Scripts with Problem Statement explanation.

You are hereby requested to use Docs in sequence, read, understand then copy paste in IDLE Editor or in Google Colab to run the programs. You need to confirm that the source image file must be copied in that folder where-in you store .py file.

Click on below link to get hands on material.

https://drive.google.com/drive/folders/1hv6Ciyk28JcVzALitOO496h-oWtbSmPV?usp=sharing



Digital Image Processing Fundamentals

Python Package Installation — Windows OS

Step 1: Check Python Installation

Open Command Prompt:

Windows → Search → type cmd → Command Prompt

Run:

python --version

You should get something similar to:

Python 3.12.x

Also check pip:

python -m pip --version

Step 2: Upgrade pip

Run:

python -m pip install --upgrade pip

Step 3: Install All Required DIP Packages

Recommended single command

Copy and paste this entire command into Command Prompt:

python -m pip install opencv-python numpy pillow openpyxl matplotlib scikit-image scikit-learn

Wait until the installation is completed.


Step 4: Verify the Packages

Run:

python -m pip show opencv-python
python -m pip show numpy
python -m pip show pillow
python -m pip show openpyxl
python -m pip show matplotlib
python -m pip show scikit-image
python -m pip show scikit-learn

If package information is displayed, the package is installed.


Step 5: Test All Packages Together

Participants can create a file named:

test_dip.py

and put this code inside:

# ============================================================
# TEST PROGRAM FOR DIGITAL IMAGE PROCESSING
# ============================================================

# NumPy - image matrices and numerical operations
import numpy as np

# OpenCV - image processing
import cv2

# Pillow - image reading
from PIL import Image

# OpenPyXL - Excel file creation
import openpyxl

# Matplotlib - image/graph display
import matplotlib

# Scikit-Image - image processing algorithms
import skimage

# Scikit-Learn - machine learning/classification
import sklearn


# ------------------------------------------------------------
# DISPLAY VERSIONS
# ------------------------------------------------------------

print("==========================================")
print("DIGITAL IMAGE PROCESSING ENVIRONMENT")
print("==========================================")

print("NumPy        :", np.__version__)
print("OpenCV       :", cv2.__version__)
print("Pillow       :", Image.__version__)
print("OpenPyXL     :", openpyxl.__version__)
print("Matplotlib   :", matplotlib.__version__)
print("Scikit-Image :", skimage.__version__)
print("Scikit-Learn :", sklearn.__version__)

print()
print("All required packages are installed!")

Run it from Command Prompt:

python test_dip.py

Expected result:

==========================================
DIGITAL IMAGE PROCESSING ENVIRONMENT
==========================================
NumPy        : ...
OpenCV       : ...
Pillow       : ...
OpenPyXL     : ...
Matplotlib   : ...
Scikit-Image : ...
Scikit-Learn : ...

All required packages are installed!

Step 6: If python Is Not Recognized

If participants get:

'python' is not recognized as an internal or external command

try:

py --version

If that works, use py instead of python:

py -m pip install --upgrade pip

Then:

py -m pip install opencv-python numpy pillow openpyxl matplotlib scikit-image scikit-learn

Complete Command List for Participants

You can give them this short version:

============================================================
DIGITAL IMAGE PROCESSING FUNDAMENTALS
PYTHON PACKAGE INSTALLATION – WINDOWS
============================================================

1. Check Python
   python --version

2. Check pip
   python -m pip --version

3. Upgrade pip
   python -m pip install --upgrade pip

4. Install DIP packages
   python -m pip install opencv-python numpy pillow openpyxl matplotlib scikit-image scikit-learn

5. Verify OpenCV
   python -m pip show opencv-python

6. Verify NumPy
   python -m pip show numpy

7. Verify Pillow
   python -m pip show pillow

8. Verify OpenPyXL
   python -m pip show openpyxl

9. Verify Matplotlib
   python -m pip show matplotlib

10. Verify Scikit-Image
    python -m pip show scikit-image

11. Verify Scikit-Learn
    python -m pip show scikit-learn
============================================================

Packages and their purpose

PackagePurpose
OpenCVRead, display, filter, threshold, segment and detect objects
NumPyImage matrices and pixel manipulation
PillowRead/display JPG, PNG, TIFF images
OpenPyXLStore pixel/RGB values in Excel
MatplotlibDisplay images and plots
Scikit-ImageAdvanced image processing and feature extraction
Scikit-LearnClassification and machine learning

Important: Participants should install these packages before the training session and bring their test result showing “All required packages are installed!” This will avoid installation delays during your practical demonstrations.


No comments:

Day-1 24-08-2026 , Hands on material on basic of digital image processing in Python using OpenCV package.

BLDEAS V. P. Dr. P. G. Halakatti College of Engineering & Technology, Vijayapura   FACULTY DEVELOPMENT PROGRAMME (FDP) “Advances in ...