当前位置:网站首页>Feature extraction and detection 14 plane object recognition
Feature extraction and detection 14 plane object recognition
2022-07-06 14:12:00 【QT Visual Science】
Plane object recognition
Object deformation and position transformation
Code demonstration
Object deformation and position transformation
1. findHomography – Find the perspective transformation of two planes , Generating transformation matrix
2. perspectiveTransform Perspective transformation
Code demonstration
#include <opencv2/opencv.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <iostream>
#include <math.h>
using namespace cv;
using namespace std;
using namespace cv::xfeatures2d;
int main(int argc, char** argv) {
Mat img1 = imread("D:/vcprojects/images/box.png", IMREAD_GRAYSCALE);
Mat img2 = imread("D:/vcprojects/images/box_in_scene.png", IMREAD_GRAYSCALE);
if (!img1.data || !img2.data) {
return -1;
}
imshow("object image", img1);
imshow("object in scene", img2);
// surf featurs extraction
int minHessian = 400;
Ptr<SURF> detector = SURF::create(minHessian);
vector<KeyPoint> keypoints_obj;
vector<KeyPoint> keypoints_scene;
Mat descript边栏推荐
猜你喜欢

Xray and burp linkage mining

Intranet information collection of Intranet penetration (5)

xray與burp聯動 挖掘

Experiment 6 inheritance and polymorphism

HackMyvm靶机系列(4)-vulny

【VMware异常问题】问题分析&解决办法

Poker game program - man machine confrontation

Detailed explanation of network foundation routing

Canvas foundation 2 - arc - draw arc

HackMyvm靶机系列(7)-Tron
随机推荐
内网渗透之内网信息收集(四)
xray与burp联动 挖掘
Intranet information collection of Intranet penetration (I)
Record once, modify password logic vulnerability actual combat
实验七 常用类的使用(修正帖)
[insert, modify and delete data in the headsong educator data table]
强化学习基础记录
Hackmyvm target series (4) -vulny
[MySQL table structure and integrity constraint modification (Alter)]
WEB漏洞-文件操作之文件包含漏洞
强化学习基础记录
C language file operation
Low income from doing we media? 90% of people make mistakes in these three points
[data processing of numpy and pytoch]
SRC mining ideas and methods
[err] 1055 - expression 1 of order by clause is not in group by clause MySQL
captcha-killer验证码识别插件
7-9 制作门牌号3.0(PTA程序设计)
7-15 h0161. Find the greatest common divisor and the least common multiple (PTA program design)
Intranet information collection of Intranet penetration (5)