Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# OpenCV
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);
           }
Posted 17-Mar-12 8:49am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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 Wink | ;)
  Permalink  
Comments
nagyervin89 at 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)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 17 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100