Click here to Skip to main content
12,953,263 members (81,951 online)
Rate this:
Please Sign up or sign in to 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);

Posted 13-Jan-13 1:06am
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
Jochen Arndt 1,975
ppolymorphe 1,920

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