Click here to Skip to main content
11,642,600 members (66,632 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
i have detected eyes using this code and i want to take snapshot of both eyes in different picturebox.. can any one help me that how to take snap of individual eyes?

MCvAvgComp[][] eyes = gray1.DetectHaarCascade(eye, 1.1, 1, Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING, new Size(20, 20));
                    gray1.ROI = Rectangle.Empty;
 
                    foreach (MCvAvgComp eyesnap in eyes[0])
                    {
                        Rectangle eyeRect = eyesnap.rect;
                        eyeRect.Offset(f.rect.X, f.rect.Y);
                        nextFrame.Draw(eyeRect, new Bgr(Color.Green), 2);
 

                    }
Posted 13-Jan-13 1:06am
Comments
Sergey Alexandrovich Kryukov at 13-Jan-13 12:14pm
   
Why PictureBox?
—SA
Member 9487578 at 14-Jan-13 5:02am
   
because i want to detect emotions from eyes so i need pictures of both eyes in different picture boxes.
Sergey Alexandrovich Kryukov at 14-Jan-13 11:16am
   
Why PictureBox? If you think this a container for an image think again. To make it brief: this is a lamer's control class, good only for the simplest task, to show a static picture on screen. You are not even showing your eyes, are you?
—SA
tiggerc at 14-Jan-13 11:16am
   
You could do with capturing the picturebox.image into an image, then learning about comparing images. etc.

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

  Print Answers RSS
0 DamithSL 254
1 Sergey Alexandrovich Kryukov 204
2 OriginalGriff 160
3 Afzaal Ahmad Zeeshan 129
4 Mika Wendelius 85
0 Mika Wendelius 485
1 DamithSL 457
2 OriginalGriff 365
3 Afzaal Ahmad Zeeshan 258
4 Sergey Alexandrovich Kryukov 254


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 13 Jan 2013
Copyright © CodeProject, 1999-2015
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