Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am a newbie.I have project which need use opencvdotnet or emgucv. When i tried to debug a simple tutorial i have a problem. that is my code

C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OpenCVDotNet;
namespace nghich2
{
    public partial class Form1 : Form
    {
        private CVCapture capture;
        public Form1()
        {
            InitializeComponent();
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            using (CVImage nextFrame = capture.QueryFrame())
            {
                pictureBox1.Image = nextFrame.ToBitmap();
            }
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            capture = new CVCapture();
        }
    }
}


When i debuged, it shown "Fileexception was unhandled" at "Application.Run(new Form1());"

Some one explain me??
Posted
Updated 29-Sep-11 8:30am
v3
Comments
Sergey Alexandrovich Kryukov 1-Mar-11 11:17am    
No, this is not a correct or sufficient exception report. You manually type it!
You don't show real source of exception is the code
Catch it, collect full dump of exception (Stack, InnerException -- all of then, recursively), save to file and post it. Use "Improve question", never post as an Answer. In exception Stack, locate files/lines of code and show this code.
--SA

Hi
lease see my tutorial on setting up an EMGU it should help diagnose your problem, te error could be caused by any number of things so a little more description would be helpful

Creating Your First EMGU Image Processing Project[^]

There is also the EMGU installation page

http://www.emgu.com/wiki/index.php/Download_And_Installation[^]

Hope they help
Cheers
Chris
 
Share this answer
 
i'll suggest use Emgucv..

use following references

Quote:

[^]


[^]


[^]



refer these articles
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900