Realized by:
o Imran YAZIDI
o Khadija OUCHATTI
Guided by:
SIDI MOHAMED BEN ABDELLAH UNIVERSITY
THE POLYDISCIPLINARY FACULTY OF TAZA
MPCS DEPARTMENT
MASTER INELEGENT SYSTEM & MOBIL
o Mr S.AKHRAZ
106/03/2020
1. Introduction
2. What’s digital image
3. What’s image processing
4. Applications of image processing
5. Image processing &research
6. Image processing & python
7. Image processor 1.0
8. Graphical Interface
9. Filtres algorithms
10.Conclusion & prospectives
PLAN
1
2
2
IntroductionIntorduction
Digital image
Image processing
Applications of I.P
I.P &research
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Project title:
Create an image processing interface
3
What is the digital image ?Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
A digital image is a representation of a real image as a set of
numbers that can be stored and handled by a digital computer.
In order to translate the image into numbers, it is divided into
small areas called pixelsI.P &research
4
Digital imageIntorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Types of digital images
o Binary images:
0,1 or 0,255
o Gray-scale images:
[0,255]
o Color images :
 - CMY (cyan-magenta-yellow) - RGB (Red-Green-Blue)
• Passive displays, such
as color printers
• This is a subtractive
color model
• Active displays, such as
computer monitors
• This is an additive color
model
I.P &research
5
The RGB imageIntorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
o RGB images :
R:[0,255]
G:[0,255]
B:[0,255]
o P(x,y)=[220,100,0]
o So essentially, any color can be encoded as three
numbers .. one each for red, green, and blue.
6
The RGB imageIntorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
7
Image processingIntorduction
Digital image
Image processing
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Applications of I.P
DIP(digital image processing) :
is a method to perform some
operations on an image, in order
to get an enhanced image or to
extract some useful information
from it.
I.P &research
8
Applications of image processingIntorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Medical Imaging
I.P &research
9
Applications of image processing
Smart vehicle
Driver hypovigilance detection
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
10
Applications of image processing
Tracking of players, of the ball
Sports Videos
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
11
Applications of image processing
• Facial recognition
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Biometric identification / verification
• Fingerprint
• Iris
I.P &research
12
Applications of image processing
Improvement, image restoration
Information extraction, pattern recognition
Visualization, 3D reconstruction, computer
generated image
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
13
Applications of image processing
Handwriting recognition
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
14
Applications of image processing
Search for images by content
Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
I.P &research
15
Image Processing & researchs
Greatest Companies……….
Research labs
INRIA, ONERA, INSERM, CEA, LORIA, etc…
Intorduction
Digital image
Image processing
Applications of I.P
I.P &research
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
16
Image processing with pythonIntorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Who do I.P
Numpy
Scikit ImageScipy
PIL/Pillow
OpenCV-Python SimpleCV
Mahotas Pycairo
Python librairies used in image processing 17
Image processor 1.0Intorduction
Digital image
Image processing
Applications of I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Who do I.P
Application:
Image processor 1.0
Filter 1 filter 2 Filter 3
..
Images sources Images results
18
Graphical Interface
Image processor version 1.0
Intorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
19
Filtres algorithms: BrightnessIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Algorithm
12 43
13 56
17 48
18 61
+5
Image
source
Image
result
20
Filtres algorithms: RGB To grayscaleIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Image
source
Image
result
Algorithm
12 43
13 56
(12+9+200)/3= 74
9 4
10 34
200 23
65 96
74 23
29 62
R G B
21
Filtres algorithms: RGB To white & blackIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Algorithm
Image
source
Image
result
130 43
12 156
255 0
0 255
Y=x>125?255:0
22
Filtres algorithms: Reverse colorIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Algorithm
Image
source
Image
result
130 43
12 156
125 212
243 99
Y=255-x
we subtract 255 from x
23
Filtres algorithms: MirrorIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Image
Source:
Left to
right
Image
Result:
Right to
left
Algorithm
130 43
12 156
13043
12156
24
Conclusion & ProspectivesIntorduction
Digital image
Image processing
Applications of I.P
Who do I.P
I.P with python
Image Processor
Graphical
interface
Filtres algorithm
Conclusion
Conclusion
Image processing is a discipline of computer science that studies
digital images and their transformations, with the aim of
improving their quality or extracting information from them.
Python is becoming a smart choice for image processing. This is
due to its growing popularity as a scientific programming
language and the free availability of many advanced image
processing tools in its ecosystem.
Prospectives:
• Adding other filters
• Applying filter in selected areas
• Managing other image formats jpg , bmp..
• Adding Save work functionality
• Generating animated image .GIF
25

Image processing python

  • 1.
    Realized by: o ImranYAZIDI o Khadija OUCHATTI Guided by: SIDI MOHAMED BEN ABDELLAH UNIVERSITY THE POLYDISCIPLINARY FACULTY OF TAZA MPCS DEPARTMENT MASTER INELEGENT SYSTEM & MOBIL o Mr S.AKHRAZ 106/03/2020
  • 2.
    1. Introduction 2. What’sdigital image 3. What’s image processing 4. Applications of image processing 5. Image processing &research 6. Image processing & python 7. Image processor 1.0 8. Graphical Interface 9. Filtres algorithms 10.Conclusion & prospectives PLAN 1 2 2
  • 3.
    IntroductionIntorduction Digital image Image processing Applicationsof I.P I.P &research I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Project title: Create an image processing interface 3
  • 4.
    What is thedigital image ?Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion A digital image is a representation of a real image as a set of numbers that can be stored and handled by a digital computer. In order to translate the image into numbers, it is divided into small areas called pixelsI.P &research 4
  • 5.
    Digital imageIntorduction Digital image Imageprocessing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Types of digital images o Binary images: 0,1 or 0,255 o Gray-scale images: [0,255] o Color images :  - CMY (cyan-magenta-yellow) - RGB (Red-Green-Blue) • Passive displays, such as color printers • This is a subtractive color model • Active displays, such as computer monitors • This is an additive color model I.P &research 5
  • 6.
    The RGB imageIntorduction Digitalimage Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research o RGB images : R:[0,255] G:[0,255] B:[0,255] o P(x,y)=[220,100,0] o So essentially, any color can be encoded as three numbers .. one each for red, green, and blue. 6
  • 7.
    The RGB imageIntorduction Digitalimage Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 7
  • 8.
    Image processingIntorduction Digital image Imageprocessing I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Applications of I.P DIP(digital image processing) : is a method to perform some operations on an image, in order to get an enhanced image or to extract some useful information from it. I.P &research 8
  • 9.
    Applications of imageprocessingIntorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Medical Imaging I.P &research 9
  • 10.
    Applications of imageprocessing Smart vehicle Driver hypovigilance detection Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 10
  • 11.
    Applications of imageprocessing Tracking of players, of the ball Sports Videos Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 11
  • 12.
    Applications of imageprocessing • Facial recognition Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Biometric identification / verification • Fingerprint • Iris I.P &research 12
  • 13.
    Applications of imageprocessing Improvement, image restoration Information extraction, pattern recognition Visualization, 3D reconstruction, computer generated image Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 13
  • 14.
    Applications of imageprocessing Handwriting recognition Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 14
  • 15.
    Applications of imageprocessing Search for images by content Intorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion I.P &research 15
  • 16.
    Image Processing &researchs Greatest Companies………. Research labs INRIA, ONERA, INSERM, CEA, LORIA, etc… Intorduction Digital image Image processing Applications of I.P I.P &research I.P with python Image Processor Graphical interface Filtres algorithm Conclusion 16
  • 17.
    Image processing withpythonIntorduction Digital image Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Who do I.P Numpy Scikit ImageScipy PIL/Pillow OpenCV-Python SimpleCV Mahotas Pycairo Python librairies used in image processing 17
  • 18.
    Image processor 1.0Intorduction Digitalimage Image processing Applications of I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Who do I.P Application: Image processor 1.0 Filter 1 filter 2 Filter 3 .. Images sources Images results 18
  • 19.
    Graphical Interface Image processorversion 1.0 Intorduction Digital image Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion 19
  • 20.
    Filtres algorithms: BrightnessIntorduction Digitalimage Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Algorithm 12 43 13 56 17 48 18 61 +5 Image source Image result 20
  • 21.
    Filtres algorithms: RGBTo grayscaleIntorduction Digital image Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Image source Image result Algorithm 12 43 13 56 (12+9+200)/3= 74 9 4 10 34 200 23 65 96 74 23 29 62 R G B 21
  • 22.
    Filtres algorithms: RGBTo white & blackIntorduction Digital image Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Algorithm Image source Image result 130 43 12 156 255 0 0 255 Y=x>125?255:0 22
  • 23.
    Filtres algorithms: ReversecolorIntorduction Digital image Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Algorithm Image source Image result 130 43 12 156 125 212 243 99 Y=255-x we subtract 255 from x 23
  • 24.
    Filtres algorithms: MirrorIntorduction Digitalimage Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Image Source: Left to right Image Result: Right to left Algorithm 130 43 12 156 13043 12156 24
  • 25.
    Conclusion & ProspectivesIntorduction Digitalimage Image processing Applications of I.P Who do I.P I.P with python Image Processor Graphical interface Filtres algorithm Conclusion Conclusion Image processing is a discipline of computer science that studies digital images and their transformations, with the aim of improving their quality or extracting information from them. Python is becoming a smart choice for image processing. This is due to its growing popularity as a scientific programming language and the free availability of many advanced image processing tools in its ecosystem. Prospectives: • Adding other filters • Applying filter in selected areas • Managing other image formats jpg , bmp.. • Adding Save work functionality • Generating animated image .GIF 25