Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9130663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:00:08+00:00 2026-06-17T08:00:08+00:00

HI Im using the code for face detection. but not im going to continue

  • 0

HI Im using the code for face detection. but not im going to continue with face recognition. But im get stack here where, how for the next step. However, im using the emgu version 2.2

            if (faces.Length > 0)
            {
                foreach (var face in faces)
                {
                    ImageFrame.Draw(face.rect, new Bgr(Color.Green), 2);
                    //Extract face 
                    ExtractedFace = new Bitmap(face.rect.Width, face.rect.Height);

                    FaceConvas = Graphics.FromImage(ExtractedFace);
                    FaceConvas.DrawImage(GrayBmpInput, 0, 0, face.rect, GraphicsUnit.Pixel); 
                    ExtcFacesArr[faceNo] = ExtractedFace;
                    faceNo++;

                }

                faceNo = 0; 
                picExtcFaces.Image = ExtcFacesArr[faceNo];

                CamImageBox.Image = ImageFrame;
            }
        }

Where should i continue with the face recognition and do have any good reference online in C# code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:00:10+00:00Added an answer on June 17, 2026 at 8:00 am

    You code is almost correct, but i think you do not have idea what to do next.I am doing face recognition in one of my app for showing a mask on face.I am doing like this.

    Image mask = Image.FromFile("mask.png");
    public Bitmap getFacedBitmap(Bitmap bbb)
        {
            using (Image<Bgr, byte> nextFrame = new Image<Bgr, byte>(bbb))
            {
                if (nextFrame != null)
                {
                    // there's only one channel (greyscale), hence the zero index
                    //var faces = nextFrame.DetectHaarCascade(haar)[0];
                    Image<Gray, byte> grayframe = nextFrame.Convert<Gray, byte>();
                    //Image<Gray, Byte> gray = nextFrame.Convert<Gray, Byte>();
    
                    var faces = grayframe.DetectHaarCascade(haar, 1.3, 2, HAAR_DETECTION_TYPE.SCALE_IMAGE, new Size(nextFrame.Width / 8, nextFrame.Height / 8))[0];
                    if (faces.Length > 0)
                    {
                       foreach (var face in faces)
                      {
                          //ImageFrame.Draw(face.rect, new Bgr(Color.Green), 2);
                          //                     
                          using(Graphics g = Graphics.FromImage(bbb))
                         {
                           g.DrawImage(mask,face.rect);
                           g.Save()
                         }
                      }
    
                   }
               }
           }
        retun bbb;
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to do some Face Recognition (not detection) stuff using OpenCV. I
I face some problem when I use submit. Here is the code using some
Im trying face detection using opencv in android but I unable to load the
Here is the code I am using to detect face from an Image: -
I am using the following code from the samples folder of OpenCV for face-detection
I'm using the following code to perform face detection using OpenCV on the iPhone.
I am using the code available in this website: http://nashruddin.com/OpenCV_Face_Detection to do face detection.
I have two sites using the same exact code for @font-face. The font files
Hi I am using OpenCV face-detection sample(OpenCV 2.4.2). I have changed the face-detection sample
I'm studying the LBP algorithm and reading the paper Face Detection and Verification using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.