SlideShare a Scribd company logo
Python for Image Processing
Applications
One Week Faculty Development Program on
Research Challenges in Computer Science & Engineering – RCCSE-2020
01.06.2020 to 05.06.2020
RAMACHANDRA College of Engineering
Eluru, Andra Pradesh
Presented by,
Dr.R.Senthilkumar,
Assistant Professor,
Dept. of ECE,
Institute of Road and Transport Technology,
Erode, Tamil Nadu-638316
Email: rsenthil.optical@gmail.com,
Contact no: 9940882605 Tuesday, July 7, 2020
Python Libraries
Python 3.7 and above
Matplotlib
Numpy
Scipy
Pillow
OpenCV
Scikit-learn
Software Weblinks
Python 3.7 - https://www.python.org/
Matplotlib - https://matplotlib.org/
Numpy - https://numpy.org/
Scipy - https://www.scipy.org/
Pillow - https://pypi.org/project/Pillow/
OpenCV - https://pypi.org/project/opencv-python/
Scikit-learn - https://scikit-learn.org/ (
Software Installation
Python 3.7
* Download Python latest version from Python.org
* Install the Python in windows in any drive
* After installation check whether it is properly installed or not
in your system using the command
D:Program FilesPython37>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018,
04:06:47) [MSC v.1914 32 bit (Inte
l)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>>
Software Installation
Numpy, Scipy and Matplotlib installation
D:Program FilesPython37>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC
v.1914 32 bit (Inte
l)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import scipy
>>> import matplotlib
>>>
1. python -m pip install numpy
2. python -m pip install scipy
3. python -m pip install matplotlib
 Run: pip install opencv-python
- if you need only main modules
 Run: pip install opencv-contrib-python
- if you need both main and contrib modules
Basic Image Processing using
matplotlib & pillow Python libraries
Exercises:
1. Image read and display
2. Pseudo color Image
3. Pseudo color Image color bar
4. Image Resizing
5. Image Interpolation
6. RGB to Gray Image
7. Histogram Plot
8. Cropping a Portion of an Image
9. Shape of an Image and gray scale conversion
10.Image transform
11.Image Filtering
12.Image Details and Changing Image File Format
Results
Copyright
Image
Output:
Exercise 1
Output:
Exercise 2
Output:
Exercise 3
Output:
Exercise 4
Output: Exercise 5
Output: Exercise 6
Output:
Exercise 7
Output:
Exercise 8
Output: Exercise 9
Output:
Exercise 10-1
Output:
Exercise 10-2
Output:
Exercise 10-3
Output:
Exercise 10-4
Output:
Exercise 10-5
Output: Exercise 11-1
Output: Exercise 11-2
Output: Exercise 11-3
Output: Exercise 11-4
Output: Exercise 12
More practice- refer the youtube link
https://www.youtube.com/watch?v=Me2OWBstBNg&t=21s
Image Processing using OpenCV
Exercises:
1. Read a colour and display an image
2. Read a colour image and display the size of an image
3. Convert a colout image into Gray image
4. Vertical and Horizontal stack more than one image
5. Image transform (rotation)
6. Image resize
Output: Exercise 1
Image size (183, 275)
Output: Exercise 2
Output: Exercise 3
Output: Exercise 4
Output: Exercise 5
Output: Exercise 6
Orignal Image Resized Image
More practice- Refer the youtube
video link
https://www.youtube.com/watch?v=CCkDS-fo-eQ
Video Processing using OpenCV
Exercises:
1. Capture a colour video from web camera
2. Capture a colour video from web camera and covert into
gray video
3. Capture a colour vido and get its frame width and height
4. Set the user specified frame width and height
5. Play a already recorded video
6. Capture a video using webcamera and flip that video
Exercises:
7. Converting Colour video to Gray video
8. Converting Colour video to Gray and Gray to Binary video
9. Video Blurring (Low pass filtering)
10. Video resize and interpolation followed video blurring
11. Edge detection
12. Video Masking
13. Histogram Equalization
14. Video image transform
15. Video motion Detection
More practice –Refer the youtube
video lecture
https://www.youtube.com/watch?v=bR01_iGx7os
Machine Learning based Classification of Contaminated
Drinking Water Using Raspberry Pi Embedded System and
IoT Device
Aim of this research project:
The drinking and human usage fresh water are contaminated and
polluted by wastages released from dyeing and other industries. The
classification of highly contaminated, mildly contaminated, lightly
contaminated and recycled water is important for different level of water
purification. The aim of this project is to develop an Internet of Things
based low cost embedded Raspberry pi model for drinking water image
classification. For image classification, a machine learning based
algorithm proposed here called as KNNMPCAF3 (K-Nearest Neighbour
Machine Learning based Principle Component Analysis First Three).
Algorithm
KNNMPCA3 Algorithm
Step 1: Start the program.
Step 2: Collect the water sample images.
Step 3: Derive top 3 principle components after pressing the keypad.
Step 4: PCAs corresponding to each image samples are encoded.
Step 5: The encoded image samples are classified using KNN classifier.
Step 6:The classification accuracies are calculated for different number of neighbours.
Step 7:Results are plotted.
Flowchart
Proposed Model Block Diagram
Collected River Water samples
Non-Contaminated
River Water Sample
Lightly Contaminated
River Water Sample
Moderately
Contaminated River
Water Sample
Severly
Contaminated River
Water Sample
Raspberry pi Hardware
Blynk IoT App configuration in Mobile
Phone
Interface Raspberry pi Embedded kit
Keypad, LEDs and Buzzer
Interfacing VNC viewer installed Laptop and
Raspberry pi kit using USB
Principle Component Analysis Feature Extraction
Table 1: Images captured their respective classes and along
with top 3 principle components are listed here
Class Number
and Class Name
Image Id PCA 1 PCA 2 PCA 3
Class ‘0’
Non-contaminated
water
I1 0.639 0.609 0.594
I2 0.784 0.505 0.476
I3 0.639 0.609 0.594
Class ‘1’
Lightly
contaminated
water
I4 0.874 0.871 0.836
I5 0.877 0.762 0.722
I6 0.167 0.144 0.141
Class ‘2’
Moderately
contaminated
water
I7 0.133 0.133 0.129
I8 0.285 0.285 0.261
I9 0.134 0.132 0.129
Class ‘3’
Severely
contaminated
water
I10 1.048 1.007 9.547
I11 0.487 0.461 0.418
I12 0.134 0.132 0.122
I13 1.611 1.500 1.247
Table 2: Raspberry pi general purpose input and output pins
configuration and corresponding interfacing devices
GPIO Pin Number Configured
Input/output
Connected Device
GPIO 8 Input Keypad
GPIO 10 Output BLUE Colour LED
GPIO 16 Output GREEN Colour LED
GPIO 18 Output RED Colour LED
GPIO 22 Output BUZZER
GPIO 6 Ground GND pin 3
Manual Control & Operation of Mobile Phont IoT
App by a health inspector or sanitary worker
Software display- Python programmed and display the
results in terminal or python shell script
Table 3: Recognition accuracy and false alarm for all
the four cases
Number of KNNs
Recognition Accuracy in
Percentage
False Alarm in Percentage
1 100 0
2 76.92 23.08
3 76.92 23.08
4 69.23 30.77
Plot between No.of Nearest neighbor vs % Recognition
Accuracy & False alarm
More details- refer YouTube video lecture
1. Machine learning using Python+Raspberry pi -
https://www.youtube.com/watch?v=5SrZTyuFpmU&t=13s
2. Image classification using Python+Raspberry pi+Machine learning part 1 –
https://www.youtube.com/watch?v=GpJomlEiJfQ&t=18s
3. Image classification using Python+Raspberry pi+Machine learning part 2–
https://www.youtube.com/watch?v=jvLjRh2bGAI&t=51s
4. Image classification using Python+Raspberry pi+Machine learning part 3 –
https://www.youtube.com/watch?v=YIjGiEWF7IY&t=15s
5. Machine Learning based Classification of Contaminated Drinking Water Using
Raspberry Pi Embedded System and IoT Device
https://www.youtube.com/watch?v=-oONEWCjLTw&t=369s
Is it necessary to file copyright or
patent our work
http://copyright.gov.in/frmStatusGenUser.aspx
Diary number:6588/2020-CO/L

More Related Content

What's hot

Lab manual of Digital image processing using python by khalid Shaikh
Lab manual of Digital image processing using python by khalid ShaikhLab manual of Digital image processing using python by khalid Shaikh
Lab manual of Digital image processing using python by khalid Shaikh
khalidsheikh24
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
Nitin Sharma
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
Ramachendran Logarajah
 
Privacy, security and ethics in data science
Privacy, security and ethics in data sciencePrivacy, security and ethics in data science
Privacy, security and ethics in data science
Nikolaos Vasiloglou
 
Computer vision
Computer visionComputer vision
Computer vision
AnkitKamal6
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
Computer vision ppt
Computer vision pptComputer vision ppt
Computer vision ppt
RachitSogani1
 
Cse image processing ppt
Cse image processing pptCse image processing ppt
Cse image processing ppt
Ashish Kumar Thakur
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
Gichelle Amon
 
Region filling
Region fillingRegion filling
Region filling
hetvi naik
 
Machine Learning - Object Detection and Classification
Machine Learning - Object Detection and ClassificationMachine Learning - Object Detection and Classification
Machine Learning - Object Detection and Classification
Vikas Jain
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)
Herman Kurnadi
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
Gaurav Mittal
 
Deepfake detection
Deepfake detectionDeepfake detection
Deepfake detection
Weverify
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face Recognition
NanditaDutta4
 
Object detection with deep learning
Object detection with deep learningObject detection with deep learning
Object detection with deep learning
Sushant Shrivastava
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - cameras
Wael Badawy
 
A Beginner's Guide to Monocular Depth Estimation
A Beginner's Guide to Monocular Depth EstimationA Beginner's Guide to Monocular Depth Estimation
A Beginner's Guide to Monocular Depth Estimation
Ryo Takahashi
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
shabanam tamboli
 
OpenCV presentation series- part 1
OpenCV presentation series- part 1OpenCV presentation series- part 1
OpenCV presentation series- part 1
Sairam Adithya
 

What's hot (20)

Lab manual of Digital image processing using python by khalid Shaikh
Lab manual of Digital image processing using python by khalid ShaikhLab manual of Digital image processing using python by khalid Shaikh
Lab manual of Digital image processing using python by khalid Shaikh
 
Computer Vision
Computer VisionComputer Vision
Computer Vision
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
 
Privacy, security and ethics in data science
Privacy, security and ethics in data sciencePrivacy, security and ethics in data science
Privacy, security and ethics in data science
 
Computer vision
Computer visionComputer vision
Computer vision
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
Computer vision ppt
Computer vision pptComputer vision ppt
Computer vision ppt
 
Cse image processing ppt
Cse image processing pptCse image processing ppt
Cse image processing ppt
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Region filling
Region fillingRegion filling
Region filling
 
Machine Learning - Object Detection and Classification
Machine Learning - Object Detection and ClassificationMachine Learning - Object Detection and Classification
Machine Learning - Object Detection and Classification
 
Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)Deep learning on face recognition (use case, development and risk)
Deep learning on face recognition (use case, development and risk)
 
Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)Convolutional Neural Networks (CNN)
Convolutional Neural Networks (CNN)
 
Deepfake detection
Deepfake detectionDeepfake detection
Deepfake detection
 
Attendance Management System using Face Recognition
Attendance Management System using Face RecognitionAttendance Management System using Face Recognition
Attendance Management System using Face Recognition
 
Object detection with deep learning
Object detection with deep learningObject detection with deep learning
Object detection with deep learning
 
Computer Vision - cameras
Computer Vision - camerasComputer Vision - cameras
Computer Vision - cameras
 
A Beginner's Guide to Monocular Depth Estimation
A Beginner's Guide to Monocular Depth EstimationA Beginner's Guide to Monocular Depth Estimation
A Beginner's Guide to Monocular Depth Estimation
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
OpenCV presentation series- part 1
OpenCV presentation series- part 1OpenCV presentation series- part 1
OpenCV presentation series- part 1
 

Similar to Python for Image and Video processing applications

Bang pypers agustmeetup
Bang pypers agustmeetupBang pypers agustmeetup
Law cost portable machine vision system
Law cost portable machine vision systemLaw cost portable machine vision system
Law cost portable machine vision system
Sagarika Muthukumarana
 
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTIONAN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
IRJET Journal
 
Classroom Attendance using Face Detection and Raspberry-Pi
Classroom Attendance using Face Detection and Raspberry-PiClassroom Attendance using Face Detection and Raspberry-Pi
Classroom Attendance using Face Detection and Raspberry-Pi
IRJET Journal
 
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
INFOGAIN PUBLICATION
 
AI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food ClassifierAI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food Classifier
jimmy majumder
 
MAJOR PROJECT
MAJOR PROJECT MAJOR PROJECT
MAJOR PROJECT
sandeep amaravadi
 
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNINGAUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
vivatechijri
 
IRJET- Face Detection based on Image Processing using Raspberry Pi 4
IRJET-  	  Face Detection based on Image Processing using Raspberry Pi 4IRJET-  	  Face Detection based on Image Processing using Raspberry Pi 4
IRJET- Face Detection based on Image Processing using Raspberry Pi 4
IRJET Journal
 
Machine vision Application
Machine vision ApplicationMachine vision Application
Machine vision Application
Abhishek Sainkar
 
Machine Vision On Embedded Platform
Machine Vision On Embedded Platform Machine Vision On Embedded Platform
Machine Vision On Embedded Platform
Omkar Rane
 
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
Amit Mangukiya
 
Electronic Circuit Assessment using Machine Learning (ML)
Electronic Circuit Assessment using Machine Learning (ML)Electronic Circuit Assessment using Machine Learning (ML)
Electronic Circuit Assessment using Machine Learning (ML)
vivatechijri
 
Thesis Ben O'Brien D11128055
Thesis Ben O'Brien D11128055Thesis Ben O'Brien D11128055
Thesis Ben O'Brien D11128055
Ben O Brien
 
IRJET- Fish Recognition and Detection Based on Deep Learning
IRJET-  	  Fish Recognition and Detection Based on Deep LearningIRJET-  	  Fish Recognition and Detection Based on Deep Learning
IRJET- Fish Recognition and Detection Based on Deep Learning
IRJET Journal
 
Machine Vision On Embedded Platform -Report
Machine Vision On Embedded Platform -ReportMachine Vision On Embedded Platform -Report
Machine Vision On Embedded Platform -Report
Omkar Rane
 
IRJET- Sketch-Verse: Sketch Image Inversion using DCNN
IRJET- Sketch-Verse: Sketch Image Inversion using DCNNIRJET- Sketch-Verse: Sketch Image Inversion using DCNN
IRJET- Sketch-Verse: Sketch Image Inversion using DCNN
IRJET Journal
 
Smart Hydroponic Plant Growing System using IoT
Smart Hydroponic Plant Growing System using IoTSmart Hydroponic Plant Growing System using IoT
Smart Hydroponic Plant Growing System using IoT
Gustavo Sanchez Collado
 
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDSFACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
IRJET Journal
 
IRJET- IoT and ML based Smart TV for Child Eyes Safety
IRJET-  	  IoT and ML based Smart TV for Child Eyes SafetyIRJET-  	  IoT and ML based Smart TV for Child Eyes Safety
IRJET- IoT and ML based Smart TV for Child Eyes Safety
IRJET Journal
 

Similar to Python for Image and Video processing applications (20)

Bang pypers agustmeetup
Bang pypers agustmeetupBang pypers agustmeetup
Bang pypers agustmeetup
 
Law cost portable machine vision system
Law cost portable machine vision systemLaw cost portable machine vision system
Law cost portable machine vision system
 
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTIONAN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
 
Classroom Attendance using Face Detection and Raspberry-Pi
Classroom Attendance using Face Detection and Raspberry-PiClassroom Attendance using Face Detection and Raspberry-Pi
Classroom Attendance using Face Detection and Raspberry-Pi
 
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
 
AI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food ClassifierAI Food detector; A model of Generative adversarial network for food Classifier
AI Food detector; A model of Generative adversarial network for food Classifier
 
MAJOR PROJECT
MAJOR PROJECT MAJOR PROJECT
MAJOR PROJECT
 
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNINGAUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
AUTOMATED E-WASTE DISPOSAL USING MACHINE LEARNING
 
IRJET- Face Detection based on Image Processing using Raspberry Pi 4
IRJET-  	  Face Detection based on Image Processing using Raspberry Pi 4IRJET-  	  Face Detection based on Image Processing using Raspberry Pi 4
IRJET- Face Detection based on Image Processing using Raspberry Pi 4
 
Machine vision Application
Machine vision ApplicationMachine vision Application
Machine vision Application
 
Machine Vision On Embedded Platform
Machine Vision On Embedded Platform Machine Vision On Embedded Platform
Machine Vision On Embedded Platform
 
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
ONLINE E-WASTE COLLECTION SYSTEM project Report (Approved)
 
Electronic Circuit Assessment using Machine Learning (ML)
Electronic Circuit Assessment using Machine Learning (ML)Electronic Circuit Assessment using Machine Learning (ML)
Electronic Circuit Assessment using Machine Learning (ML)
 
Thesis Ben O'Brien D11128055
Thesis Ben O'Brien D11128055Thesis Ben O'Brien D11128055
Thesis Ben O'Brien D11128055
 
IRJET- Fish Recognition and Detection Based on Deep Learning
IRJET-  	  Fish Recognition and Detection Based on Deep LearningIRJET-  	  Fish Recognition and Detection Based on Deep Learning
IRJET- Fish Recognition and Detection Based on Deep Learning
 
Machine Vision On Embedded Platform -Report
Machine Vision On Embedded Platform -ReportMachine Vision On Embedded Platform -Report
Machine Vision On Embedded Platform -Report
 
IRJET- Sketch-Verse: Sketch Image Inversion using DCNN
IRJET- Sketch-Verse: Sketch Image Inversion using DCNNIRJET- Sketch-Verse: Sketch Image Inversion using DCNN
IRJET- Sketch-Verse: Sketch Image Inversion using DCNN
 
Smart Hydroponic Plant Growing System using IoT
Smart Hydroponic Plant Growing System using IoTSmart Hydroponic Plant Growing System using IoT
Smart Hydroponic Plant Growing System using IoT
 
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDSFACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
FACE COUNTING USING OPEN CV & PYTHON FOR ANALYZING UNUSUAL EVENTS IN CROWDS
 
IRJET- IoT and ML based Smart TV for Child Eyes Safety
IRJET-  	  IoT and ML based Smart TV for Child Eyes SafetyIRJET-  	  IoT and ML based Smart TV for Child Eyes Safety
IRJET- IoT and ML based Smart TV for Child Eyes Safety
 

More from Electronics and Communication Engineering, Institute of Road and Transport Technology

Chennai python augustmeetup
Chennai python augustmeetupChennai python augustmeetup
Sci py india_conference_2019
Sci py india_conference_2019Sci py india_conference_2019
Unit5 power devices and display devices class9
Unit5 power devices and display devices class9Unit5 power devices and display devices class9
Unit4 special semiconductor devices class4
Unit4 special semiconductor devices class4Unit4 special semiconductor devices class4
Electronic circuits ii unit5 part1_power_amplifiers
Electronic circuits ii unit5 part1_power_amplifiersElectronic circuits ii unit5 part1_power_amplifiers
Electronic circuits ii
Electronic circuits iiElectronic circuits ii
Dsp iit workshop
Dsp iit workshopDsp iit workshop
Dip iit workshop
Dip iit workshopDip iit workshop

More from Electronics and Communication Engineering, Institute of Road and Transport Technology (9)

list_of_selected_institute_for_impact_lecture_scheme_p1_2023.pdf
list_of_selected_institute_for_impact_lecture_scheme_p1_2023.pdflist_of_selected_institute_for_impact_lecture_scheme_p1_2023.pdf
list_of_selected_institute_for_impact_lecture_scheme_p1_2023.pdf
 
Chennai python augustmeetup
Chennai python augustmeetupChennai python augustmeetup
Chennai python augustmeetup
 
Sci py india_conference_2019
Sci py india_conference_2019Sci py india_conference_2019
Sci py india_conference_2019
 
Unit5 power devices and display devices class9
Unit5 power devices and display devices class9Unit5 power devices and display devices class9
Unit5 power devices and display devices class9
 
Unit4 special semiconductor devices class4
Unit4 special semiconductor devices class4Unit4 special semiconductor devices class4
Unit4 special semiconductor devices class4
 
Electronic circuits ii unit5 part1_power_amplifiers
Electronic circuits ii unit5 part1_power_amplifiersElectronic circuits ii unit5 part1_power_amplifiers
Electronic circuits ii unit5 part1_power_amplifiers
 
Electronic circuits ii
Electronic circuits iiElectronic circuits ii
Electronic circuits ii
 
Dsp iit workshop
Dsp iit workshopDsp iit workshop
Dsp iit workshop
 
Dip iit workshop
Dip iit workshopDip iit workshop
Dip iit workshop
 

Recently uploaded

BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
dot55audits
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Denish Jangid
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
HajraNaeem15
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
haiqairshad
 

Recently uploaded (20)

BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
ZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptxZK on Polkadot zero knowledge proofs - sub0.pptx
ZK on Polkadot zero knowledge proofs - sub0.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
Chapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptxChapter wise All Notes of First year Basic Civil Engineering.pptx
Chapter wise All Notes of First year Basic Civil Engineering.pptx
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
How to deliver Powerpoint Presentations.pptx
How to deliver Powerpoint  Presentations.pptxHow to deliver Powerpoint  Presentations.pptx
How to deliver Powerpoint Presentations.pptx
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skillsspot a liar (Haiqa 146).pptx Technical writhing and presentation skills
spot a liar (Haiqa 146).pptx Technical writhing and presentation skills
 

Python for Image and Video processing applications

  • 1. Python for Image Processing Applications One Week Faculty Development Program on Research Challenges in Computer Science & Engineering – RCCSE-2020 01.06.2020 to 05.06.2020 RAMACHANDRA College of Engineering Eluru, Andra Pradesh Presented by, Dr.R.Senthilkumar, Assistant Professor, Dept. of ECE, Institute of Road and Transport Technology, Erode, Tamil Nadu-638316 Email: rsenthil.optical@gmail.com, Contact no: 9940882605 Tuesday, July 7, 2020
  • 2. Python Libraries Python 3.7 and above Matplotlib Numpy Scipy Pillow OpenCV Scikit-learn
  • 3. Software Weblinks Python 3.7 - https://www.python.org/ Matplotlib - https://matplotlib.org/ Numpy - https://numpy.org/ Scipy - https://www.scipy.org/ Pillow - https://pypi.org/project/Pillow/ OpenCV - https://pypi.org/project/opencv-python/ Scikit-learn - https://scikit-learn.org/ (
  • 4. Software Installation Python 3.7 * Download Python latest version from Python.org * Install the Python in windows in any drive * After installation check whether it is properly installed or not in your system using the command D:Program FilesPython37>python Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Inte l)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
  • 5. Software Installation Numpy, Scipy and Matplotlib installation D:Program FilesPython37>python Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Inte l)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> import scipy >>> import matplotlib >>> 1. python -m pip install numpy 2. python -m pip install scipy 3. python -m pip install matplotlib
  • 6.  Run: pip install opencv-python - if you need only main modules  Run: pip install opencv-contrib-python - if you need both main and contrib modules
  • 7. Basic Image Processing using matplotlib & pillow Python libraries Exercises: 1. Image read and display 2. Pseudo color Image 3. Pseudo color Image color bar 4. Image Resizing 5. Image Interpolation 6. RGB to Gray Image 7. Histogram Plot 8. Cropping a Portion of an Image 9. Shape of an Image and gray scale conversion 10.Image transform 11.Image Filtering 12.Image Details and Changing Image File Format
  • 28. More practice- refer the youtube link https://www.youtube.com/watch?v=Me2OWBstBNg&t=21s
  • 29. Image Processing using OpenCV Exercises: 1. Read a colour and display an image 2. Read a colour image and display the size of an image 3. Convert a colout image into Gray image 4. Vertical and Horizontal stack more than one image 5. Image transform (rotation) 6. Image resize
  • 30. Output: Exercise 1 Image size (183, 275) Output: Exercise 2
  • 34. Output: Exercise 6 Orignal Image Resized Image
  • 35. More practice- Refer the youtube video link https://www.youtube.com/watch?v=CCkDS-fo-eQ
  • 36. Video Processing using OpenCV Exercises: 1. Capture a colour video from web camera 2. Capture a colour video from web camera and covert into gray video 3. Capture a colour vido and get its frame width and height 4. Set the user specified frame width and height 5. Play a already recorded video 6. Capture a video using webcamera and flip that video
  • 37. Exercises: 7. Converting Colour video to Gray video 8. Converting Colour video to Gray and Gray to Binary video 9. Video Blurring (Low pass filtering) 10. Video resize and interpolation followed video blurring 11. Edge detection 12. Video Masking 13. Histogram Equalization 14. Video image transform 15. Video motion Detection
  • 38. More practice –Refer the youtube video lecture https://www.youtube.com/watch?v=bR01_iGx7os
  • 39. Machine Learning based Classification of Contaminated Drinking Water Using Raspberry Pi Embedded System and IoT Device Aim of this research project: The drinking and human usage fresh water are contaminated and polluted by wastages released from dyeing and other industries. The classification of highly contaminated, mildly contaminated, lightly contaminated and recycled water is important for different level of water purification. The aim of this project is to develop an Internet of Things based low cost embedded Raspberry pi model for drinking water image classification. For image classification, a machine learning based algorithm proposed here called as KNNMPCAF3 (K-Nearest Neighbour Machine Learning based Principle Component Analysis First Three).
  • 40. Algorithm KNNMPCA3 Algorithm Step 1: Start the program. Step 2: Collect the water sample images. Step 3: Derive top 3 principle components after pressing the keypad. Step 4: PCAs corresponding to each image samples are encoded. Step 5: The encoded image samples are classified using KNN classifier. Step 6:The classification accuracies are calculated for different number of neighbours. Step 7:Results are plotted.
  • 43. Collected River Water samples Non-Contaminated River Water Sample Lightly Contaminated River Water Sample Moderately Contaminated River Water Sample Severly Contaminated River Water Sample
  • 45. Blynk IoT App configuration in Mobile Phone
  • 46. Interface Raspberry pi Embedded kit Keypad, LEDs and Buzzer
  • 47. Interfacing VNC viewer installed Laptop and Raspberry pi kit using USB
  • 48. Principle Component Analysis Feature Extraction
  • 49. Table 1: Images captured their respective classes and along with top 3 principle components are listed here Class Number and Class Name Image Id PCA 1 PCA 2 PCA 3 Class ‘0’ Non-contaminated water I1 0.639 0.609 0.594 I2 0.784 0.505 0.476 I3 0.639 0.609 0.594 Class ‘1’ Lightly contaminated water I4 0.874 0.871 0.836 I5 0.877 0.762 0.722 I6 0.167 0.144 0.141 Class ‘2’ Moderately contaminated water I7 0.133 0.133 0.129 I8 0.285 0.285 0.261 I9 0.134 0.132 0.129 Class ‘3’ Severely contaminated water I10 1.048 1.007 9.547 I11 0.487 0.461 0.418 I12 0.134 0.132 0.122 I13 1.611 1.500 1.247
  • 50. Table 2: Raspberry pi general purpose input and output pins configuration and corresponding interfacing devices GPIO Pin Number Configured Input/output Connected Device GPIO 8 Input Keypad GPIO 10 Output BLUE Colour LED GPIO 16 Output GREEN Colour LED GPIO 18 Output RED Colour LED GPIO 22 Output BUZZER GPIO 6 Ground GND pin 3
  • 51. Manual Control & Operation of Mobile Phont IoT App by a health inspector or sanitary worker
  • 52. Software display- Python programmed and display the results in terminal or python shell script
  • 53. Table 3: Recognition accuracy and false alarm for all the four cases Number of KNNs Recognition Accuracy in Percentage False Alarm in Percentage 1 100 0 2 76.92 23.08 3 76.92 23.08 4 69.23 30.77
  • 54. Plot between No.of Nearest neighbor vs % Recognition Accuracy & False alarm
  • 55. More details- refer YouTube video lecture 1. Machine learning using Python+Raspberry pi - https://www.youtube.com/watch?v=5SrZTyuFpmU&t=13s 2. Image classification using Python+Raspberry pi+Machine learning part 1 – https://www.youtube.com/watch?v=GpJomlEiJfQ&t=18s 3. Image classification using Python+Raspberry pi+Machine learning part 2– https://www.youtube.com/watch?v=jvLjRh2bGAI&t=51s 4. Image classification using Python+Raspberry pi+Machine learning part 3 – https://www.youtube.com/watch?v=YIjGiEWF7IY&t=15s 5. Machine Learning based Classification of Contaminated Drinking Water Using Raspberry Pi Embedded System and IoT Device https://www.youtube.com/watch?v=-oONEWCjLTw&t=369s
  • 56. Is it necessary to file copyright or patent our work http://copyright.gov.in/frmStatusGenUser.aspx Diary number:6588/2020-CO/L