Object tracking using Homography – OpenCV 3.4 with python 3 Tutorial 34
We’re going to learn in this tutorial how to track an object using the Feature matching method, and then finding the Homography….
k-Nearest Neighbour classification – OpenCV 3.4 with python 3 Tutorial 33
Source code: [python] import cv2 import numpy as np def mouse_pos(event, x, y, flags, params): global squares, color, new_element if event ==…
Background Subtraction – OpenCV 3.4 with python 3 Tutorial 32
We’re going to learn in this tutorial how to subtract the background on a video. The concept of background subtraction is really…
Optical Flow with Lucas-Kanade method – OpenCV 3.4 with python 3 Tutorial 31
Source code: [python] import cv2 import numpy as np cap = cv2.VideoCapture(0) # Create old frame _, frame = cap.read() old_gray =…
Object tracking with Camshift – OpenCV 3.4 with python 3 Tutorial 30
Source code: [python] import cv2 import numpy as np img = cv2.imread("gray_cover.jpg") roi = img[252: 395, 354: 455] x = 354…
Object tracking with Mean-shift – OpenCV 3.4 with python 3 Tutorial 29
We will see how to track an object based on colors. To do this I used the OpenCV Mean-shift algorithm. This way…
Histogram and Back Projection – OpenCV 3.4 with python 3 Tutorial 28
[python] import cv2 import numpy as np from matplotlib import pyplot as plt original_image = cv2.imread("goalkeeper.jpg") hsv_original = cv2.cvtColor(original_image, cv2.COLOR_BGR2HSV) roi =…
Mouse Events – OpenCV 3.4 with python 3 Tutorial 27
Draw circles: [python] import cv2 import numpy as np def mouse_drawing(event, x, y, flags, params): if event == cv2.EVENT_LBUTTONDOWN: print("Left click")…
Feature Matching (Brute-Force) – OpenCV 3.4 with python 3 Tutorial 26
In this tutorial we will talk about Feature Matching with OpenCV. In my example I used the same book cover but in…
Feature detection (SIFT, SURF, ORB) – OpenCV 3.4 with python 3 Tutorial 25
We’re going to learn in this tutorial how to find features on an image.We have thre different algorythms that we can use:…