private void ProcessFrame(object sender, EventArgs arg)
{
Wrapper cam = new Wrapper();
//show the image in the EmguCV ImageBox
WebcamPictureBox.Image = cam.start_cam(capture).Resize(390, 243, Emgu.CV.CvEnum.INTER.CV_INTER_CUBIC).ToBitmap();
FaceDetectedLabel.Text = "Faces Detected : " + cam.facesdetected.ToString();
}
I am working on a C# windows application. I am stuck with a simple question:
How can i do a if else with the condition: If "cam.facesdetected.ToString()" if equal or more than 2 do sth, else do nothing.
I tried this, but it does not seems to work. Can anyone help me?
cam.facesdetected = abc;
MessageBox.Show("The detected faces is:" + abc);
if (abc >= 2)
{
//Do action
}
else
{
//Do nothing
}
abc = cam.facesdetected;