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();
}
私は C# Windows アプリケーションに取り組んでいます。私は簡単な質問で立ち往生しています:
条件で if else を実行するにはどうすればよいですか: If " cam.facesdetected.ToString() " if equal or more 2 do sth, else do nothing.
これを試してみましたが、うまくいかないようです。誰でも私を助けることができますか?
cam.facesdetected = abc;
MessageBox.Show("The detected faces is:" + abc);
if (abc >= 2)
{
//Do action
}
else
{
//Do nothing
}