Click here to Skip to main content
15,938,218 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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);

Sergey Alexandrovich Kryukov 13-Jan-13 12:14pm    
Why PictureBox?
Member 9487578 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 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?
tiggerc 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)

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