LEC1 Introduction Computer Vision
LEC1 Introduction Computer Vision
Computer Vision
With Deep
Learning
Lecture 1: Introduction to Computer Vision
2. Image Representation
3. Color Spaces
6. Useful Libraries
1
9/20/2023
1. What’s Computer
vision?
2
9/20/2023
Related Domains
❑Signal Processing: process electronic signals to
remove noise, extract information or prepare
them for further processing.
❑Image Processing: process digital images to
improve their quality, convert them into another
format or change them for further processing.
❑Machine Learning: help computers to
recognize patterns in images and understand
what they see.
❑Robot Vision and Machine Vision are
applications of computer vision in Robotics and
Industrial domains.
Robot Vision
3
9/20/2023
Machine Vision
4
9/20/2023
❑ Computer Vision has a many applications such as in retail, security, sports, healthcare,
automotive, manufacturing, and agriculture.
ISITCOM 3DNI OLFA.BESBES@ISITC.U-SOUSSE.TN 2023-2024 10
10
5
9/20/2023
11
12
6
9/20/2023
13
14
7
9/20/2023
15
16
8
9/20/2023
17
2. Image Representation
18
9
9/20/2023
0 = black
2D matrix of pixels 255 = White
19
20
10
9/20/2023
21
Image Coordinates
22
11
9/20/2023
3. Color Spaces
23
24
12
9/20/2023
25
26
13
9/20/2023
4. Image Transformations
27
Image Resizing
❑ Various interpolation algorithms can be used to interpolate the new pixel values e.g., linear,
cubic, and nearest neighbor.
28
14
9/20/2023
Image Cropping
❑ Cropping an image to get the region of interest (ROI) can be done easily by slicing the image
array and taking the new indices values.
29
Geometric Transformation
Original Image
30
15
9/20/2023
Thresholding
❑ In image processing, thresholding means to update the pixel’s value to either white or black
according to a threshold value.
31
32
16
9/20/2023
Image Filtering
❑ Image filtering is a fundamental concept in image
processing.
33
34
17
9/20/2023
Image Convolution
❑ Image convolution is a mathematical
operation that enhances, modifies, or extracts
features in an image by applying a filter or
kernel based on the values of neighboring
pixels.
35
2D Convolution
36
18
9/20/2023
6. Useful Libraries
37
OpenCV
38
19
9/20/2023
TensorFlow
❑ End-to-end open-source platform
for machine learning and artificial
intelligence.
39
❑ Deep learning API written in Python and running on top of the machine learning
platform TensorFlow.
❑ User-friendly that is designed to enable easy and fast experimentation with DL.
❑ Reliable, modular, and extensible that works with multi-backend and multi-platform.
40
20
9/20/2023
Installation
❑ Step (1): Download the *.exe file from https://www.anaconda.com/download/ and
install Anaconda.
❑ Step (2): Lunch Anaconda’s CMD terminal and execute ‘conda create --name myenv’
to create a new environment myenv and active using ‘conda activate myenv’.
❑ Step (3): Install Tensorflow using ‘conda install -c conda-forge tensorflow-gpu’ for
NVIDA Graphic cards.
41
42
21
9/20/2023
43
Image
Visualization
44
22
9/20/2023
Image
Preprocessing
45
Image Transformation
46
23