注意:本博文在github上日常更新(保持GitHub最新)

https://github.com/SylvesterLi/MyOpenCVCode

基本安装:https://blog.csdn.net/nicewe/article/details/79173346

Contribute编译-安装:https://blog.csdn.net/zmdsjtu/article/details/78069739

注意:我在make的时候被卡住了好半天。因为后台在补全(下载)package,跟网络有关 

实践证明,没有build文件夹直接使用newbuild是可以的。(另外,第二个教程里教你配置环境变量F:\OCV\opencv\newbuild\install\x64\vc15\bin)

我的Github链接:https://github.com/SylvesterLi/MyOpenCVCode

Here is my README.md

Here is my OpenCV Learning Code

Well, I am not so professional in this, but I'd like to share my learning experinence.

maybe someday it goes to work out my questions~

Update 1

2018/08/25 Now we come a new stage and I should learn more professional knowledge.

What I have learnt from

This tells you how to normally setup

https://blog.csdn.net/jia20003/article/details/54583431

and when you got some trouble:Pls check your network(My home network trapped me for a long while)

Problems such as

Download face_landmark_model.dat Failed (or time out)
missing ffmpeg

but the download is real slow.
you could use your mobile and provide hotspot for your PC.(As I done)

if auto-download can't do to help, you could check these issues :

https://github.com/opencv/opencv_contrib/issues

At last ,google can be your best driver.

Update 2

Finally, got it! After check and check again, it works!

Below is the code of printing all files' name in current catalog
Just paste it in the PowerShell
Attention : the F:\OCV\opencv\newbuild\install\x64\vc15\lib is my file directory path


Get-ChildItem F:\OCV\opencv\newbuild\install\x64\vc15\lib | ForEach-Object -Process{
if($_ -is [System.IO.FileInfo])
{
Write-Host($_.name);
}
}

## Update 3

In the OCV3 Project I don't use src as default input image but use img_1.Which leads me misleading and make some mistakes. In the last days, I should take care of this!!

## Update 4

These two days, i just watch corner detection, one of detection methods is Harris , and another is Shi-Tomasi Corner detetion. In my point of view , Good Features To Track (aka Shi-Tomasi) performs better than Harris detection .

But both of them did not mark the top of roof which human could easily recognize.

Pic blow is good feature to track

goodF2Track.png

and till now, I should have finished custom corner detection, but I think it is unnecessary to learn. When I meet such kind of projects or problems, I would come back have a careful seek.

Update 5

SIFT.png

These two days I have tried SURF and SIFT,both of them are using to detect KeyPoints in the image which is hard for human beings to recognize what it is.

And the result of Experiments is that there are not so much differences between SURF and SIFT, but you still say, the KeyPoints of image shows their own features, which we can conclude that SIFT seems better?

Almost forget to say, their sample code looks same.


//SIFT跟SURF代码是一模一样的
//numOfFeatures指的是特征点的个数
int numOfFeatures = 400;
//现在创建检测器
Ptr<SIFT> detector = SIFT::create(numOfFeatures);
vector<KeyPoint> keypoints;//存到这来
//检测 
detector->detect(src, keypoints);
Mat kpImage;
//绘制关键点
drawKeypoints(src, keypoints, kpImage);

namedWindow("result", WINDOW_AUTOSIZE);
imshow("result", kpImage);

Update 6

Comming soon....

These days I am too lazy to update, but from now on. I will keep code updating!!!

转载于:https://www.cnblogs.com/-SANG/p/9655749.html

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐