TemplateMatching
TemplateMatching
MSSV:22151145
1. Import an image to Matlab/python/C++
clear all;close all;clc
I = imread('a1.jpg');
figure;imshow(I);
I = rgb2gray(I);
T = I(310:365, 355:470);
figure; imshow(T); title('template');
1.2.Using template matching method based on the area correlation to find the location