Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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)

C#
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);
           }
Posted

1 solution

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 ;)
 
Share this answer
 
Comments
nagyervin89 18-Mar-12 11:07am    
Thank You :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900