当前位置:网站首页>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
边栏推荐
- 网络基础详解
- 【MySQL数据库的学习】
- 【Numpy和Pytorch的数据处理】
- Intranet information collection of Intranet penetration (5)
- 【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...
- Meituan dynamic thread pool practice ideas, open source
- Hackmyvm target series (5) -warez
- The United States has repeatedly revealed that the yield of interest rate hiked treasury bonds continued to rise
- Force deduction 152 question multiplier maximum subarray
- 强化学习基础记录
猜你喜欢
7-5 走楼梯升级版(PTA程序设计)
Strengthen basic learning records
Attach the simplified sample database to the SQLSERVER database instance
Only 40% of the articles are original? Here comes the modification method
Record a penetration of the cat shed from outside to inside. Library operation extraction flag
4. Branch statements and loop statements
HackMyvm靶機系列(3)-visions
【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...
Intranet information collection of Intranet penetration (I)
外网打点(信息收集)
随机推荐
内网渗透之内网信息收集(一)
Intranet information collection of Intranet penetration (5)
sqqyw(淡然点图标系统)漏洞复现和74cms漏洞复现
Simply understand the promise of ES6
撲克牌遊戲程序——人機對抗
Xray and burp linkage mining
[insert, modify and delete data in the headsong educator data table]
DVWA (5th week)
7-4 散列表查找(PTA程序设计)
Web vulnerability - File Inclusion Vulnerability of file operation
. How to upload XMIND files to Jinshan document sharing online editing?
Canvas foundation 2 - arc - draw arc
搭建域环境(win)
7-8 7104 Joseph problem (PTA program design)
7-15 h0161. Find the greatest common divisor and the least common multiple (PTA program design)
HackMyvm靶机系列(2)-warrior
强化学习基础记录
On the idea of vulnerability discovery
Record once, modify password logic vulnerability actual combat
网络基础详解