我在C#中使用Emgu.CV,但是MCvFont不起作用。 Emgu的版本为4.0 我该如何解决?我是该平台上的新手,所以对不起,如果不好解释。
代码:
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.CV.CvEnum;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
using System.Net.Http;
using System.Net.Http.Headers;
namespace Prueba
{
public partial class Form1 : Form
{
const string subkey = "xxxxxxxxx";
const string apiUrl = "xxxxxxxxxxx";
public int heigth, width;
public string[] Labels;
Image<Bgr, Byte> currentFrame;
VideoCapture grabber;
CascadeClassifier face;
MCvFont font = new MCvFont(FONT.CV_HERSHEY_TRIPLEX, 0.4d, 0.4d);
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}