Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have done eye detection using emgucv. Now i want to display the detected eye regions in separate pictureboxes. How can i modify this code to do that?

C#
MCvAvgComp[][] eyesDetected = gray.DetectHaarCascade(
                          eye,
                          1.1,
                          10,
                          Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING,
                          new Size(20, 20));
                       gray.ROI = Rectangle.Empty;

                       foreach (MCvAvgComp ey in eyesDetected[0])
                       {
                           Rectangle eyeRect = ey.rect;
                           eyeRect.Offset(f.rect.X, f.rect.Y);
                           currentFrame.Draw(eyeRect, new Bgr(Color.Blue), 2);

                       }
Posted
Comments
Sergey Alexandrovich Kryukov 27-Mar-14 12:29pm    
Congratulations. You can show anything you want, by forgetting PictureBox and other lame stuff designed only for simplification of the simplest chores. This control is totally redundant and won't help in your case. As soon you forget it, you won't have any problems.
—SA

1 solution

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