将'Emgu.CV.Image '转换为'System.Drawing.Image'

问题描述 投票:2回答:1

我正在用C#进行人脸识别。如何解决此错误?

错误4无法将类型'Emgu.CV.Image'隐式转换为'System.Drawing.Image']

对于此代码:

cameraBox1.Image = Frame;
names = "" ;
User.Clear();
c# emgucv face-recognition
1个回答
0
投票

[System.Windows.Forms.PictureBoxcameraBox1一样,不直接接受Emgu.CV.Image。您必须像这样System.Drawing.Image]将其转换为cameraBox1.Image = Frame.ToBitmap();

© www.soinside.com 2019 - 2024. All rights reserved.