我使用OPENCV中的ORB提取一系列圖片的特征描述子descriptors和關鍵點Keypoints,但是提取完后發現Keypoints.size( )=0,descriptors.size() =[0X0],求問這是什么原因,該怎么解決?
Ptr<ORB> orb = ORB::create();
vector<KeyPoint> Keypoints;
Mat descriptors;
Mat src = imread(files1,0);
resize(src,src,Size(48,48));
orb->detect(src, Keypoints);
orb->compute(src, Keypoints, descriptors);
cout << "key_size= " << Keypoints.size() <<endl;
cout << "orb_size= " << descriptors.size() <<endl;
運行截圖
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/112244.html
標籤:OpenCV
上一篇:opencv視頻處理
下一篇:逐日動態配流模型
