当前位置:网站首页>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与burp联动 挖掘
- 记一次api接口SQL注入实战
- msf生成payload大全
- Safe driving skills on ice and snow roads
- XSS之冷门事件
- The United States has repeatedly revealed that the yield of interest rate hiked treasury bonds continued to rise
- Experiment 4 array
- 7-11 mechanic mustadio (PTA program design)
- "Gold, silver and four" job hopping needs to be cautious. Can an article solve the interview?
猜你喜欢
HackMyvm靶機系列(3)-visions
xray与burp联动 挖掘
Mixlab unbounded community white paper officially released
Canvas foundation 2 - arc - draw arc
攻防世界MISC练习区(SimpleRAR、base64stego、功夫再高也怕菜刀)
QT meta object qmetaobject indexofslot and other functions to obtain class methods attention
《英特尔 oneAPI—打开异构新纪元》
Strengthen basic learning records
[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i
UGUI—Text
随机推荐
Canvas foundation 2 - arc - draw arc
7-4 hash table search (PTA program design)
7-11 机工士姆斯塔迪奥(PTA程序设计)
《英特尔 oneAPI—打开异构新纪元》
【VMware异常问题】问题分析&解决办法
DVWA (5th week)
安全面试之XSS(跨站脚本攻击)
Using qcommonstyle to draw custom form parts
7-5 走楼梯升级版(PTA程序设计)
内网渗透之内网信息收集(五)
7-6 矩阵的局部极小值(PTA程序设计)
Tencent map circle
【黑马早报】上海市监局回应钟薛高烧不化;麦趣尔承认两批次纯牛奶不合格;微信内测一个手机可注册俩号;度小满回应存款变理财产品...
HackMyvm靶机系列(7)-Tron
实验七 常用类的使用(修正帖)
Programme de jeu de cartes - confrontation homme - machine
Low income from doing we media? 90% of people make mistakes in these three points
4. Branch statements and loop statements
7-7 7003 combination lock (PTA program design)
[data processing of numpy and pytoch]