C# 未找到网络摄像头捕获

C# 未找到网络摄像头捕获,c#,webcam,C#,Webcam,我是新来的,我对一门课有问题。 我曾经遇到过“WinFormCharpWebCam.exe中发生类型为'System.IO.FileNotFoundException'的未处理异常”的问题 但我在代码中添加了引用。 有人能帮我吗? 谢谢 您的代码不完整-不,我不想要您使用的网络摄像头库中的所有代码。。示例Helper.SaveImageCapture(someimage)。。没有文件名?我只是想了解我只是想了解这个项目。但我有这个问题 using System; using System

我是新来的,我对一门课有问题。 我曾经遇到过“WinFormCharpWebCam.exe中发生类型为'System.IO.FileNotFoundException'的未处理异常”的问题 但我在代码中添加了引用。 有人能帮我吗? 谢谢


您的代码不完整-不,我不想要您使用的网络摄像头库中的所有代码。。示例Helper.SaveImageCapture(someimage)。。没有文件名?我只是想了解我只是想了解这个项目。但我有这个问题
    using System;
using System.Linq;
using System.Text;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
using WebCam_Capture;




namespace WinFormCharpWebCam
{
    //Design by Pongsakorn Poosankam
    public partial class mainWinForm : Form
    {
        public mainWinForm()
        {
            InitializeComponent();
        }
        WebCam webcam;
        private void mainWinForm_Load(object sender, EventArgs e)
        {
            webcam = new WebCam();
           // webcam.InitializeWebCam(ref imgVideo);
        }

        private void bntStart_Click(object sender, EventArgs e)
        {
            webcam.Start();
        }

        private void bntStop_Click(object sender, EventArgs e)
        {
            webcam.Stop();
        }

        private void bntContinue_Click(object sender, EventArgs e)
        {
            webcam.Continue();
        }

        private void bntCapture_Click(object sender, EventArgs e)
        {
            imgCapture.Image = imgVideo.Image;
        }

        private void bntSave_Click(object sender, EventArgs e)
        {
            Helper.SaveImageCapture(imgCapture.Image);
        }

        private void bntVideoFormat_Click(object sender, EventArgs e)
        {
            webcam.ResolutionSetting();
        }

        private void bntVideoSource_Click(object sender, EventArgs e)
        {
            webcam.AdvanceSetting();
        }


    }
}