在许多Pont OpenCvSharp之间画线 [英] Draw line between many Pont OpenCvSharp
本文介绍了在许多Pont OpenCvSharp之间画线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我使用opencvsharp,并使用Cv.GoodFeaturesToTrack()函数检测对象(该对象是矩形)的核心.在结果图像上,我得到10-15点.(我在矩形的角之间得到了点)
在这种情况下,如何使用cvLine()函数 ,我想在这些点之间画一条连续的线.
(对不起,我的英语)
HI Everyone!
I work with opencvsharp, and I use the Cv.GoodFeaturesToTrack() function to detect coreners of an object(that object is a rectangle). On the result image i get 10-15 points.(I got points between the rectangle''s corners)
How can i use the cvLine() functions in this case, I wanna draw a continous line between those points.
(Sorry for my English)
Cv.GoodFeaturesToTrack(imgGrayscale, imgEigen, imgTemp, out corners, ref count, 0.1, 15);
for (int i = 0; i < count; i++)
{
Cv.Line(img, new CvPoint2D32f(corners[i].X, corners[i].Y), new CvPoint2D32f(corners[i].X, corners[i].Y), CvColor.Red, 10);
// Cv.Line(img, new CvPoint2D32f(corners[i].X, corners[i].Y), new CvPoint2D32f(corners[i].X, corners[i].Y), CvColor.Green);
}
推荐答案
您好!
我从未尝试过使用opencv,但是在我进行计算机视觉测试的经验中,这个问题需要神经网络算法方面的知识,因此请仔细阅读本文,我很确定您会找到想要的东西: br/> 基于C#的神经网络 [ Cam Alarm 2.0-警报系统从网络摄像头 [ ^ ]
希望对您有帮助!
问候和最好的祝愿;)
Hello there !
I''ve never tried to work with opencv but in my experince in computer vision tests this question requires well knowledge in neural network algorithms ,so please have a look on this article I''m pretty sure you will find what you want :
Neural Networks on C#[^]
also this project is much easier to understand and will have what you looking for :
Cam Alarm 2.0 - Alarm system run from a web camera[^]
hope you find this useful !
Regards and best coding wishes ;)
这篇关于在许多Pont OpenCvSharp之间画线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文