Webcam Resolution

Ask question on using Emgu CV with C#

Webcam Resolution

Postby EyeDetection » Sun Dec 28, 2008 2:38 pm

Hey.
The Programm , i am working on, in the Moment, is to detect the Eyes from the Images of an runnig Webcam.
Image

Now i want to detect where the Iris is, but the Resolution of the Image(-piece) is to bad, so i want to get Images from the Cam with a Higher Resolution.
At the Moment the Resolution is 320*240-->
Image
, and i want min.640*480. ....
At the Moment i get the Frames witH:

if (AktCapture == null)
{
try
{
AktCapture = new Capture();
}
catch (NullReferenceException excpt)
{
MessageBox.Show(excpt.Message);
}
}
.......
_GetFrame = new Thread(
delegate()
{
while (true)
{
frame = AktCapture.QueryFrame();
ib_DefaultFrame.Image = frame;
}
}
);
....

how can i change the reolution ??? ... i found nothing helpfull in the other Posts...

My System:

Emgu.CV.Windows.Binary-1.4.0.0;
Prozessor Q9550;
Any Webcam (makes Resolution of 640*480) normally..

Thanks for ur Help....
EyeDetection
 
Posts: 4
Joined: Sun Dec 28, 2008 2:09 pm

Re: Webcam Resolution

Postby canming » Wed Dec 31, 2008 12:24 am

I just found this page, it might help:

http://stackoverflow.com/questions/1428 ... -in-opencv

It requires modifying and recompiling opencv's source code.
canming
Site Admin
 
Posts: 636
Joined: Thu Feb 28, 2008 4:16 pm

Re: Webcam Resolution

Postby EyeDetection » Wed Dec 31, 2008 2:18 am

thx for quick answers... specially canming =) .... i test it, to built the highgui again ... we will see...
EyeDetection
 
Posts: 4
Joined: Sun Dec 28, 2008 2:09 pm

Re: Webcam Resolution

Postby tr3w » Fri Jan 02, 2009 5:48 am

You can write the capturing code yourself.
I did it in C++/CLI for my project, and I'm not a Directshow expert.

You can use DirectShowNet in C#.

http://blogs.msdn.com/markhsch/archive/ ... ource.aspx
http://www.planet-source-code.com/vb/sc ... &lngWId=10
tr3w
 
Posts: 11
Joined: Mon Dec 22, 2008 5:57 pm

Re: Webcam Resolution

Postby EyeDetection » Thu Jan 08, 2009 4:00 pm

OK OK thx for ur help ... the Simple way is:

CvInvoke.cvSetCaptureProperty(AktCapture,CAP_PROP.CV_CAP_PROP_FRAME_WIDTH,640);

so... its closed...
EyeDetection
 
Posts: 4
Joined: Sun Dec 28, 2008 2:09 pm


Return to C# Help

Who is online

Users browsing this forum: No registered users and 1 guest