Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i detected the webcam is working? #7

Closed
linchuanhai opened this issue Oct 20, 2017 · 2 comments
Closed

how can i detected the webcam is working? #7

linchuanhai opened this issue Oct 20, 2017 · 2 comments

Comments

@linchuanhai
Copy link

Hi,
public static Capture CamCapture;
public static Mat Frame;
private void Form1_Load(object sender, EventArgs e)
{
CvInvoke.UseOpenCL = false;
CamCapture = new Capture();
CamCapture.ImageGrabbed += CamCapture_ImageGrabbed;
CamCapture.Start();
}

private void CamCapture_ImageGrabbed(object sender, System.EventArgs e)
{
Frame = new Mat();
var value= CamCapture.Retrieve(Frame);
camImg.Image = Frame;
}
how can i detected the webcam is working?
I can not found any properties or method to judge that is working.
the CamCapture.Retrieve(Frame) always is return true when the webcam line is pulled out.

@fastlater
Copy link

@linchuanhai Why did you open an issue in emgucv and another in emguTf?

@emgucv
Copy link
Owner

emgucv commented Nov 12, 2017

Please post emgu cv issues on emgu cv issue tracker:
https://github.com/emgucv/emgucv/issues

Closing ticket now.

@emgucv emgucv closed this as completed Nov 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants