接下来要准备开始玩摄像头了
直接上代码:
static void Main(string[] args)
{
VideoCapture video = new VideoCapture(0);
if (!video.IsOpened())
{
Console.WriteLine("摄像头打开失败");
return;
}
Mat photo = new Mat();
while (true)
{
Mat Camera = new Mat();
Mat GaryMart = new Mat();
video.Read(Camera);
if (Camera<

最低0.47元/天 解锁文章
1333





