I am trying to learn image processing, but it is a pain because of camera selection.
In C# Winform, I am trying to get video capture by using the camera. When I use integrated webcam, everything works fine.
However, when i pick USB connected webcam, nothing happens in the app, it shows nothing, then gives an error.
The integrated webcam index as '
' and usb webcam is '
The error I am getting is:
System.NullReferenceException: 'Nesne başvurusu bir nesnenin örneğine ayarlanmadı.'
private void btnStart_Click(object sender, EventArgs e)
if (capture == null)
capture = new VideoCapture(1);
capture.ImageGrabbed += Capture_ImageGrabbed;
If I choose '
' there is no problem but if I pick '
', nothing happens.
What I have tried:
I tried using
library, It works, but I want to do this with emgu CV. In principle, there should be no problem.
Also, I do not want to have an extra library for future apps which will be really memory consumer.
I go through whole web sites, there is almost the same problem, but nothing works for me.
Is there an effect of having usb 2.0 or 3.0?