SlideShare a Scribd company logo
Replacing MATLAB in Signal, Speech,
Image and Video Processing
Dr.R.Senthilkumar, Assistant Professor, Department of
Electronics and Communication Engineering, Institute of Road
and Transport Technology, Erode, Tamilnadu
Chennai Python Group
August Meetup
22nd August 2020
Python Libraries to
be Installed for
Signal Processing
For Windows, Linux and Android
Users
● Matplotlib
● NumPy
● SciPy
1. Continuous Sine Waveform
2. Discrete Sine Waveform
3. Sine waveform Amplitude
change
4. Stem plot of Sine
Waveform
5. Linear convolution
6. Auto correlation
7. Cross correlation
8. Discrete Fourier Transform
Using fft library in SciPy
9. Magnitude and Phase Spectrum
plot
10. Discrete Fourier Transform
using Formula(own function)
11. Power Spectrum Estimation
12. Window functions used for FIR
Filter Design
13. Low Pass FIR Filter window
Based and Digital Filter
List of Signal Processing Algorithms (few examples)
Continued…
14. High Pass FIR Filter window Based and Digital Filter
15. Band Pass FIR Filter window Based and Digital Filter
16. Band Stop FIR Filter window Based and Digital Filter
17. Low Pass IIR Butterworth Filter Analog and Digital Filter
18. High Pass IIR Butterworth Filter Analog and Digital Filter
19. Band Pass IIR Butterworth Filter Analog and Digital Filter
20. Band Stop IIR Butterworth Filter Analog and Digital Filter
References:
[1]. https://spoken-tutorial.org/cdcontent/
[2]. https://python.fossee.in/self_learningcourse/
https://python.fossee.in/spoken-tutorials/
[3]. https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/stem_plot.html#sphx-glr-
gallery-lines-bars-and-markers-stem-plot-py
[4]. https://matplotlib.org/devdocs/gallery/subplots_axes_and_figures/subplots_demo.html
[5]. https://docs.scipy.org/doc/numpy/reference/generated/numpy.convolve.html
[6]. https://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html
[7]. https://scipy-cookbook.readthedocs.io/items/FIRFilter.html
References:
[9]. http://mpastell.com/pweave/_downloads/FIR_design_rst.html
[10]. http://mpastell.com/pweave/_downloads/FIR_design_rst.html
[11]. http://mpastell.com/2009/05/11/iir-filter-design-with-python-and-scipy/
1. Generation of Sine Waveform
[refer 1_Continuous_sine_wave.py]
𝑥 𝑡 = 𝐴 ∗ 𝑠𝑖𝑛 2 ∗ 𝜋 ∗ 𝑓 ∗ 𝑡
2. Generation of Discrete & Continuous Sine Waveform [refer
2_cont_Discrete_sinewave.py]
3. Amplitude change in Sine waveform [refer Exercise no.3]
4. Stem plot Sine waveform [refer Exercise no.4]
5. Linear Convolution [refer Exercise no.5]
N = Length of Linear convolution result
N1 = Length of x[n]
N2 = Length of h[n]
N = N1+N2-1
𝑦 𝑛
= 𝑥 𝑛 ∗ ℎ 𝑛𝑦 𝑛
=
𝑘=0
𝑁−1
𝑥 𝑘 ℎ 𝑛 − 𝑘
6. Auto correlation [refer Exercise no.6]
N = Length of Auto correlation result
N1 = Length of x[n]
N2 = Length of x[-n]
N = N1+N2-1
𝑦 𝑛
= 𝑥 𝑛 ∗ 𝑥 −𝑛
7. Cross correlation [refer Exercise no.7]
N = Length of Cross correlation result
N1 = Length of x[n]
N2 = Length of h[-n]
N = N1+N2-1
𝑦 𝑛
= 𝑥 𝑛 ∗ ℎ −𝑛
8. Discrete Fourier Transform using fft
library package[refer Exercise no.8]
 Let x[n] is a discrete sequence, the N-point of Discrete Fourier Transform of x[n] is given
by,
 Inverse Discrete Fourier Transform is given by,
𝑋 𝐾
=
𝑛=0
𝑛=𝑁−1
𝑥 𝑛 𝑒
−𝑗∗2∗𝜋∗𝐾∗𝑛
𝑁
𝑥 𝑛
=
1
𝑁
𝐾=0
𝐾=𝑁−1
𝑋 𝐾 𝑒
𝑗∗2∗𝜋∗𝐾∗𝑛
𝑁
9. DFT – Magnitude and Phase Spectrum
[refer Exercise no.9]
 Let x[n] is a discrete sequence, the N-point of Discrete Fourier Transform of x[n] is given by,
 Magnitude spectrum = |X(K)|
 Phase spectrum = tan-1(Image part (X(K))/Real Part(X(K))
𝑋 𝐾
=
𝑛=0
𝑛=𝑁−1
𝑥 𝑛 𝑒
−𝑗∗2∗𝜋∗𝐾∗𝑛
𝑁
10. DFT – using own formula based
function [refer Exercise no.10]
* Use cmath Library for complex number
Manipulations
* Initialize X(K) with complex zeros ‘0+0j’
* Initialize X(K) with numpy zeros cause float type
assign to complex type error
* This problem will not occur in fft() built-in
function
11. Power Spectrum Estimation [refer
Exercise no.11]
𝑃𝑥𝑥 𝐾
=
1
𝑁
𝑋 𝐾 2
𝑋 𝐾
=
𝑛=0
𝑛=𝑁−1
𝑥 𝑛 𝑒
−𝑗∗2∗𝜋∗𝐾∗𝑛
𝑁
The power spectrum of a discrete sequence x[n] is given by,
Where X(K) is the
Discrete Fourier
Transform of x[n]
12. Windowing techniques used for FIR
Filter Design [refer Exercise no.12]
*Rectangular window
*Hamming Window
*Hanning Window
*Blackmann Window
*Bartlett window
13. FIR- Low Pass Filter-Windowing
technique [refer Exercise no.13]
h[n] = hd [n]*W[n]
hd [n] = FIR LPF impulse response
W[n] = Hamming window function
hd [n] = sin(wc*(n-(N-1)/2)) / (π*(n-(N-1)/2))
Still Image and Video Processing Applications
Python Libraries
Python 3.7 and above
Matplotlib
Numpy
Scipy
Pillow
OpenCV
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/
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
Copyrigh
t 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=Me2OWBstBN
g&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
https://www.slideshare.net/rsenthil1976/bang-pypers-
agustmeetup
Python speech, music and audio libraries
https://wiki.python.org/moin/Audio/
https://docs.python.org/3/library/winsound.
html
https://wiki.python.org/moin/PythonInMusic
https://realpython.com/playing-and-
recording-sound-python/

More Related Content

What's hot

Neural source-filter waveform model
Neural source-filter waveform modelNeural source-filter waveform model
Advancements in Neural Vocoders
Advancements in Neural VocodersAdvancements in Neural Vocoders
Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study | Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study |
FabMinds
 
H0814247
H0814247H0814247
H0814247
IOSR Journals
 
DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital Filters
Amr E. Mohamed
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
Agam Goel
 
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
T. E. BOGALE
 
Hm2513521357
Hm2513521357Hm2513521357
Hm2513521357
IJERA Editor
 
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
Yamagishi Laboratory, National Institute of Informatics, Japan
 
Ultrasound Modular Architecture
Ultrasound Modular ArchitectureUltrasound Modular Architecture
Ultrasound Modular Architecture
Jose Miguel Moreno
 
Neural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) AlgorithmNeural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) Algorithm
Mostafa G. M. Mostafa
 
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
a3labdsp
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Amr E. Mohamed
 
Lb2519271931
Lb2519271931Lb2519271931
Lb2519271931
IJERA Editor
 
Fft analysis
Fft analysisFft analysis
Fft analysis
AldinoAldo
 
D ecimation and interpolation
D ecimation and interpolationD ecimation and interpolation
D ecimation and interpolation
Suchi Verma
 
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
Takuma_OKAMOTO
 
Matlab: Speech Signal Analysis
Matlab: Speech Signal AnalysisMatlab: Speech Signal Analysis
Matlab: Speech Signal Analysis
DataminingTools Inc
 
Sound analysis and processing with MATLAB
Sound analysis and processing with MATLABSound analysis and processing with MATLAB
Sound analysis and processing with MATLAB
Tan Hoang Luu
 

What's hot (19)

Neural source-filter waveform model
Neural source-filter waveform modelNeural source-filter waveform model
Neural source-filter waveform model
 
Advancements in Neural Vocoders
Advancements in Neural VocodersAdvancements in Neural Vocoders
Advancements in Neural Vocoders
 
Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study | Python Programming | JNTUA | UNIT 2 | Case Study |
Python Programming | JNTUA | UNIT 2 | Case Study |
 
H0814247
H0814247H0814247
H0814247
 
DSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital FiltersDSP_FOEHU - Lec 07 - Digital Filters
DSP_FOEHU - Lec 07 - Digital Filters
 
Dft and its applications
Dft and its applicationsDft and its applications
Dft and its applications
 
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
Pilot Contamination Mitigation for Wideband Massive MIMO: Number of Cells Vs ...
 
Hm2513521357
Hm2513521357Hm2513521357
Hm2513521357
 
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
エンドツーエンド音声合成に向けたNIIにおけるソフトウェア群 ~ TacotronとWaveNetのチュートリアル (Part 1)~
 
Ultrasound Modular Architecture
Ultrasound Modular ArchitectureUltrasound Modular Architecture
Ultrasound Modular Architecture
 
Neural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) AlgorithmNeural Networks: Least Mean Square (LSM) Algorithm
Neural Networks: Least Mean Square (LSM) Algorithm
 
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
A Low Latency Implementation of a Non Uniform Partitioned Overlap and Save Al...
 
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processingDsp 2018 foehu - lec 10 - multi-rate digital signal processing
Dsp 2018 foehu - lec 10 - multi-rate digital signal processing
 
Lb2519271931
Lb2519271931Lb2519271931
Lb2519271931
 
Fft analysis
Fft analysisFft analysis
Fft analysis
 
D ecimation and interpolation
D ecimation and interpolationD ecimation and interpolation
D ecimation and interpolation
 
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
Real-time neural text-to-speech with sequence-to-sequence acoustic model and ...
 
Matlab: Speech Signal Analysis
Matlab: Speech Signal AnalysisMatlab: Speech Signal Analysis
Matlab: Speech Signal Analysis
 
Sound analysis and processing with MATLAB
Sound analysis and processing with MATLABSound analysis and processing with MATLAB
Sound analysis and processing with MATLAB
 

Similar to Chennai python augustmeetup

Sci py india_conference_2019
Sci py india_conference_2019Sci py india_conference_2019
B Eng Final Year Project Presentation
B Eng Final Year Project PresentationB Eng Final Year Project Presentation
B Eng Final Year Project Presentation
jesujoseph
 
DSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docxDSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docx
ParthDoshi66
 
DSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdfDSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdf
ParthDoshi66
 
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A RetrospectiveFPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
IJORCS
 
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
iosrjce
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
Simplilearn
 
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
a3labdsp
 
FPGA Implementation of High Speed FIR Filters and less power consumption stru...
FPGA Implementation of High Speed FIR Filters and less power consumption stru...FPGA Implementation of High Speed FIR Filters and less power consumption stru...
FPGA Implementation of High Speed FIR Filters and less power consumption stru...
International Journal of Engineering Inventions www.ijeijournal.com
 
Digital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course OutlineDigital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course Outline
Mohammad Sohai Khan Niazi
 
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
ijsrd.com
 
Investigations on the role of analysis window shape parameter in speech enhan...
Investigations on the role of analysis window shape parameter in speech enhan...Investigations on the role of analysis window shape parameter in speech enhan...
Investigations on the role of analysis window shape parameter in speech enhan...
karthik annam
 
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGICDESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
VLSICS Design
 
Practical spherical harmonics based PRT methods.ppsx
Practical spherical harmonics based PRT methods.ppsxPractical spherical harmonics based PRT methods.ppsx
Practical spherical harmonics based PRT methods.ppsx
MannyK4
 
B046050711
B046050711B046050711
B046050711
IJERA Editor
 
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
IJERA Editor
 
Satellite image compression algorithm based on the fft
Satellite image compression algorithm based on the fftSatellite image compression algorithm based on the fft
Satellite image compression algorithm based on the fft
ijma
 
Satellite Image Compression Algorithm Based on the FFT
Satellite Image Compression Algorithm Based on the FFTSatellite Image Compression Algorithm Based on the FFT
Satellite Image Compression Algorithm Based on the FFT
ijma
 
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
ijma
 
Creating Profiling Tools to Analyze and Optimize FiPy Presentation
Creating Profiling Tools to Analyze and Optimize FiPy PresentationCreating Profiling Tools to Analyze and Optimize FiPy Presentation
Creating Profiling Tools to Analyze and Optimize FiPy Presentation
dmurali2
 

Similar to Chennai python augustmeetup (20)

Sci py india_conference_2019
Sci py india_conference_2019Sci py india_conference_2019
Sci py india_conference_2019
 
B Eng Final Year Project Presentation
B Eng Final Year Project PresentationB Eng Final Year Project Presentation
B Eng Final Year Project Presentation
 
DSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docxDSP_Lab_MAnual_-_Final_Edition[1].docx
DSP_Lab_MAnual_-_Final_Edition[1].docx
 
DSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdfDSP_Lab_MAnual_-_Final_Edition.pdf
DSP_Lab_MAnual_-_Final_Edition.pdf
 
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A RetrospectiveFPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
 
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
Optimized Implementation of Edge Preserving Color Guided Filter for Video on ...
 
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
TensorFlow Tutorial | Deep Learning With TensorFlow | TensorFlow Tutorial For...
 
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
An Efficient DSP Implementation of a Dynamic Convolution Using Principal Comp...
 
FPGA Implementation of High Speed FIR Filters and less power consumption stru...
FPGA Implementation of High Speed FIR Filters and less power consumption stru...FPGA Implementation of High Speed FIR Filters and less power consumption stru...
FPGA Implementation of High Speed FIR Filters and less power consumption stru...
 
Digital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course OutlineDigital Signal Processinf (DSP) Course Outline
Digital Signal Processinf (DSP) Course Outline
 
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
Analysis of different FIR Filter Design Method in terms of Resource Utilizati...
 
Investigations on the role of analysis window shape parameter in speech enhan...
Investigations on the role of analysis window shape parameter in speech enhan...Investigations on the role of analysis window shape parameter in speech enhan...
Investigations on the role of analysis window shape parameter in speech enhan...
 
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGICDESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
DESIGN OF QUATERNARY LOGICAL CIRCUIT USING VOLTAGE AND CURRENT MODE LOGIC
 
Practical spherical harmonics based PRT methods.ppsx
Practical spherical harmonics based PRT methods.ppsxPractical spherical harmonics based PRT methods.ppsx
Practical spherical harmonics based PRT methods.ppsx
 
B046050711
B046050711B046050711
B046050711
 
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
High Speed Memory Efficient Multiplier-less 1-D 9/7 Wavelet Filters Based NED...
 
Satellite image compression algorithm based on the fft
Satellite image compression algorithm based on the fftSatellite image compression algorithm based on the fft
Satellite image compression algorithm based on the fft
 
Satellite Image Compression Algorithm Based on the FFT
Satellite Image Compression Algorithm Based on the FFTSatellite Image Compression Algorithm Based on the FFT
Satellite Image Compression Algorithm Based on the FFT
 
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
Implementation Of Grigoryan FFT For Its Performance Case Study Over Cooley-Tu...
 
Creating Profiling Tools to Analyze and Optimize FiPy Presentation
Creating Profiling Tools to Analyze and Optimize FiPy PresentationCreating Profiling Tools to Analyze and Optimize FiPy Presentation
Creating Profiling Tools to Analyze and Optimize FiPy Presentation
 

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

Bang pypers agustmeetup
Bang pypers agustmeetupBang pypers agustmeetup
Python for Image and Video processing applications
Python for Image and Video processing applicationsPython for Image and Video processing applications
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
 
Bang pypers agustmeetup
Bang pypers agustmeetupBang pypers agustmeetup
Bang pypers agustmeetup
 
Python for Image and Video processing applications
Python for Image and Video processing applicationsPython for Image and Video processing applications
Python for Image and Video processing applications
 
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

How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
NelTorrente
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 

Recently uploaded (20)

How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 

Chennai python augustmeetup

  • 1. Replacing MATLAB in Signal, Speech, Image and Video Processing Dr.R.Senthilkumar, Assistant Professor, Department of Electronics and Communication Engineering, Institute of Road and Transport Technology, Erode, Tamilnadu Chennai Python Group August Meetup 22nd August 2020
  • 2. Python Libraries to be Installed for Signal Processing For Windows, Linux and Android Users ● Matplotlib ● NumPy ● SciPy
  • 3. 1. Continuous Sine Waveform 2. Discrete Sine Waveform 3. Sine waveform Amplitude change 4. Stem plot of Sine Waveform 5. Linear convolution 6. Auto correlation 7. Cross correlation 8. Discrete Fourier Transform Using fft library in SciPy 9. Magnitude and Phase Spectrum plot 10. Discrete Fourier Transform using Formula(own function) 11. Power Spectrum Estimation 12. Window functions used for FIR Filter Design 13. Low Pass FIR Filter window Based and Digital Filter List of Signal Processing Algorithms (few examples)
  • 4. Continued… 14. High Pass FIR Filter window Based and Digital Filter 15. Band Pass FIR Filter window Based and Digital Filter 16. Band Stop FIR Filter window Based and Digital Filter 17. Low Pass IIR Butterworth Filter Analog and Digital Filter 18. High Pass IIR Butterworth Filter Analog and Digital Filter 19. Band Pass IIR Butterworth Filter Analog and Digital Filter 20. Band Stop IIR Butterworth Filter Analog and Digital Filter
  • 5. References: [1]. https://spoken-tutorial.org/cdcontent/ [2]. https://python.fossee.in/self_learningcourse/ https://python.fossee.in/spoken-tutorials/ [3]. https://matplotlib.org/3.1.1/gallery/lines_bars_and_markers/stem_plot.html#sphx-glr- gallery-lines-bars-and-markers-stem-plot-py [4]. https://matplotlib.org/devdocs/gallery/subplots_axes_and_figures/subplots_demo.html [5]. https://docs.scipy.org/doc/numpy/reference/generated/numpy.convolve.html [6]. https://docs.scipy.org/doc/numpy/reference/generated/numpy.zeros.html [7]. https://scipy-cookbook.readthedocs.io/items/FIRFilter.html
  • 7.
  • 8.
  • 9. 1. Generation of Sine Waveform [refer 1_Continuous_sine_wave.py] 𝑥 𝑡 = 𝐴 ∗ 𝑠𝑖𝑛 2 ∗ 𝜋 ∗ 𝑓 ∗ 𝑡
  • 10. 2. Generation of Discrete & Continuous Sine Waveform [refer 2_cont_Discrete_sinewave.py]
  • 11. 3. Amplitude change in Sine waveform [refer Exercise no.3]
  • 12. 4. Stem plot Sine waveform [refer Exercise no.4]
  • 13. 5. Linear Convolution [refer Exercise no.5] N = Length of Linear convolution result N1 = Length of x[n] N2 = Length of h[n] N = N1+N2-1 𝑦 𝑛 = 𝑥 𝑛 ∗ ℎ 𝑛𝑦 𝑛 = 𝑘=0 𝑁−1 𝑥 𝑘 ℎ 𝑛 − 𝑘
  • 14. 6. Auto correlation [refer Exercise no.6] N = Length of Auto correlation result N1 = Length of x[n] N2 = Length of x[-n] N = N1+N2-1 𝑦 𝑛 = 𝑥 𝑛 ∗ 𝑥 −𝑛
  • 15. 7. Cross correlation [refer Exercise no.7] N = Length of Cross correlation result N1 = Length of x[n] N2 = Length of h[-n] N = N1+N2-1 𝑦 𝑛 = 𝑥 𝑛 ∗ ℎ −𝑛
  • 16. 8. Discrete Fourier Transform using fft library package[refer Exercise no.8]  Let x[n] is a discrete sequence, the N-point of Discrete Fourier Transform of x[n] is given by,  Inverse Discrete Fourier Transform is given by, 𝑋 𝐾 = 𝑛=0 𝑛=𝑁−1 𝑥 𝑛 𝑒 −𝑗∗2∗𝜋∗𝐾∗𝑛 𝑁 𝑥 𝑛 = 1 𝑁 𝐾=0 𝐾=𝑁−1 𝑋 𝐾 𝑒 𝑗∗2∗𝜋∗𝐾∗𝑛 𝑁
  • 17. 9. DFT – Magnitude and Phase Spectrum [refer Exercise no.9]  Let x[n] is a discrete sequence, the N-point of Discrete Fourier Transform of x[n] is given by,  Magnitude spectrum = |X(K)|  Phase spectrum = tan-1(Image part (X(K))/Real Part(X(K)) 𝑋 𝐾 = 𝑛=0 𝑛=𝑁−1 𝑥 𝑛 𝑒 −𝑗∗2∗𝜋∗𝐾∗𝑛 𝑁
  • 18.
  • 19. 10. DFT – using own formula based function [refer Exercise no.10] * Use cmath Library for complex number Manipulations * Initialize X(K) with complex zeros ‘0+0j’ * Initialize X(K) with numpy zeros cause float type assign to complex type error * This problem will not occur in fft() built-in function
  • 20. 11. Power Spectrum Estimation [refer Exercise no.11] 𝑃𝑥𝑥 𝐾 = 1 𝑁 𝑋 𝐾 2 𝑋 𝐾 = 𝑛=0 𝑛=𝑁−1 𝑥 𝑛 𝑒 −𝑗∗2∗𝜋∗𝐾∗𝑛 𝑁 The power spectrum of a discrete sequence x[n] is given by, Where X(K) is the Discrete Fourier Transform of x[n]
  • 21.
  • 22. 12. Windowing techniques used for FIR Filter Design [refer Exercise no.12] *Rectangular window *Hamming Window *Hanning Window *Blackmann Window *Bartlett window
  • 23. 13. FIR- Low Pass Filter-Windowing technique [refer Exercise no.13] h[n] = hd [n]*W[n] hd [n] = FIR LPF impulse response W[n] = Hamming window function hd [n] = sin(wc*(n-(N-1)/2)) / (π*(n-(N-1)/2))
  • 24.
  • 25. Still Image and Video Processing Applications Python Libraries Python 3.7 and above Matplotlib Numpy Scipy Pillow OpenCV
  • 26. 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/
  • 27. 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. >>>
  • 28. 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
  • 29.  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
  • 30. 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
  • 51. More practice- refer the youtube link https://www.youtube.com/watch?v=Me2OWBstBN g&t=21s
  • 52. 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
  • 53. Output: Exercise 1 Image size (183, 275) Output: Exercise 2
  • 58. More practice- Refer the youtube video link https://www.youtube.com/watch?v=CCkDS-fo-eQ
  • 59. 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
  • 60. 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
  • 61. More practice –Refer the youtube video lecture https://www.youtube.com/watch?v=bR01_iGx7os https://www.slideshare.net/rsenthil1976/bang-pypers- agustmeetup
  • 62. Python speech, music and audio libraries
  • 63.
  • 64.