Invicta-2020 Day12
Invicta-2020 Day12
ROBOTICS CLUB
IIT GUWAHATI
Topics, we are going to cover:
●
●
●
●
●
●
●
●
●
●
What is Computer Vision?
What is Computer Vision?
01 FACE RECOGNITION 02 OBJECT RECOGNITION
1. Grayscale images
2. RGB images
A Grayscale Image
A Grayscale Image
Color Image
RGB Color Model
RGB Color Model
HSV Color Model
HSV Color Model
What is a video consists of ?
Frame Rate :
❏
Important Functions
Important Functions
Important Functions
Important Functions
Getting
Started with
Videos
Important Functions
● cv2.VideoCapture(‘car.mp4’)
● cv2.VideoCapture(0)
● cv2.VideoCapture(1)
Important Functions
Geometric
Transformation
of Image
SCALING
❏
❏
❏ Syntax - interpolation
❏
❏ Src -
❏ dsize -
❏ fx -
SCALING
❏ fy -
❏ Interpolation -
❏ cv.INTER_AREA cv.INTER_CUBIC
cv.INTER_LINEAR
❏
TRANSLATION
❏
❏
❏
❏
ROTATION
❏
❏
❏
Drawing on Image
Drawing a line:-
Syntax:
Drawing a rectangle:-
Syntax:
Drawing on Image
Drawing a circle:-
Syntax:
org:
font:
lineType:
bottomLeftOrigin:
Blurring and
Filtering
BLURRING
BLURRING
Contours
cv2.findContours(), cv2.drawContours()
❏
Contours
image, contours, hierarchy =
cv2.findContours(gray_img,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE)
❏
Contours
❏
Contours-Features
❏
❏
❏
CANNY EDGE DETECTION
Cleaning Up
Non-Max
Edge Double
Suppression
Tracking Thresholding
CANNY EDGE DETECTION
❏
❏
❏
CANNY EDGE DETECTION
❏
Parameters
❏ image:
❏ th1:
❏ th2:
CANNY EDGE DETECTION
APPLICATIONS
●
●
●
HARRIS CORNER DETECTION
Parameters
❏ Image -
❏ blockSize
❏ ksize
❏ k
Shi-Tomasi Corner Detection
corners = cv2.goodFeaturesToTrack(img_gray,N,Q,d)
Parameters
❏ Img_gray -
❏ N
❏ Q-
❏ d-
Good Features to Track
corners = cv2.goodFeaturesToTrack(img_gray,N,0.01,10)
Object Detection using Haar feature-based cascade classifiers is an effective object detection method. It is a
machine learning based approach where a cascade function is trained from a lot of positive and negative images. It
is then used to detect objects in other images.
cv2.CascadeClassifier()
It is use to load cascade file from parent directory. It takes XML classifier file as parameter
for the function.
minNeighbors: Parameter specifying how many neighbors each candidate rectangle should
have to retain it
APPLICATIONS OF IMAGE PROCESSING
Detection of any specific color using lower and upper HSV range for that color
mask= cv2.inRange(hsv_image,lower_range,upper_range)
We are creating a mask that comprises of an object of specified color according to given range.
Introduction To Deep Learning
❏
❏
Which came first ??
What is Deep Learning and Why we need it ??
❏
❏
Types Of Neural Network
● Convolutional Neural Networks :
○ Convolutional Neural Network is basically an artificial neural network that is most widely used in the
field of Computer Vision for analyzing and classifying images.
○ It is a deep learning algorithm that takes the input image and assigns weights/biases to various aspects
or objects in the image, so that it can differentiate one from the other.
○ The hidden layers of a CNN typically consist of convolutional layers, pooling layers, fully connected
layers, and normalization layers.
● Recurrent Neural Networks :
○
○
THANKS
ROBOTICS CLUB
IIT GUWAHATI