deyangdianzi / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Setting dimension of video captured from camera #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At this point AForge.Video.DirectShow.VideoCaptureDevice class captures 
video from local camera using default settings for video size. But most 
cameras support several predefined sizes for captured video. It is 
required to have functionality, which allows to enumerate supported video 
sizes and select one of them for capturing.

Original issue reported on code.google.com by andrew.k...@gmail.com on 1 Dec 2007 at 4:14

GoogleCodeExporter commented 9 years ago
Hi Andrew,

I have extended your DirectShow library to include the display of the capture 
device
property pages (using code from the the DirectShow .net wrapper that can be 
found on
the web, which I believe you have also used as your base). Contact me if you are
interested in the code.

Cheers
Yves

Original comment by Yves.Van...@gmail.com on 27 Mar 2008 at 10:58

GoogleCodeExporter commented 9 years ago
Yes, I am interested in the code.

Original comment by andrew.k...@gmail.com on 27 Mar 2008 at 2:15

GoogleCodeExporter commented 9 years ago
Make sure you add support to change framerate as well. Even more important than
resolution!

Original comment by ecke...@gmail.com on 31 Mar 2008 at 8:26

GoogleCodeExporter commented 9 years ago
I'm also very interested in the code, that lets me change resolution and 
framerate.
And of course it would be really cool, if that feature would be integrated in 
the
next release.

Original comment by Simeon.E...@student.hochschule-reutlingen.de on 30 Apr 2008 at 6:32

GoogleCodeExporter commented 9 years ago
I'm also very interested in the code for my robot tracking software. Is it 
possible 
to submit the code? Or is it integrated in the next release and when will it be 
ready?

Greets
Stefan

Original comment by stefan.h...@googlemail.com on 5 May 2008 at 8:29

GoogleCodeExporter commented 9 years ago
Hi guys

sry for not paying attention to the forum, this past month has been hectic. I 
have 
posted the code (what little there is) to Andrew. 

Original comment by Yves.Van...@gmail.com on 5 May 2008 at 2:02

GoogleCodeExporter commented 9 years ago
Hi Yves,

Can you post us the code retrieving all the video device capabilities. 

Thank you.

Original comment by ronaldca...@gmail.com on 6 May 2008 at 3:20

GoogleCodeExporter commented 9 years ago
Hello,

In the attachment you may find the code shared by Yves.

The code functionality to set resolution is going to be introduced in new 
release. 
The attachment may be used in case the feature is required urgently.

With best regards,
Andrew

Original comment by andrew.k...@gmail.com on 12 May 2008 at 9:32

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you very much!!! I'll try this out.

Original comment by Simeon.E...@student.hochschule-reutlingen.de on 13 May 2008 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 13 May 2008 at 6:43

GoogleCodeExporter commented 9 years ago
Added functionality to display property page of video capture device, which 
allows 
changing its settings provided by driver (contrast, brightness, frame size, 
etc).

Committed in revision 474. Will be released in version 1.6.3

Original comment by andrew.k...@gmail.com on 14 May 2008 at 5:08

GoogleCodeExporter commented 9 years ago
VideoCaptureDevice class is extended with DesiredFrameRate and DesiredFrameSize 
properties, which allow to configure frame rate and size.

Here is the sample:
videoSource.DesiredFrameRate = 10;
videoSource.DesiredFrameSize = new Size( 320, 240 );

Committed in revision 475. Will be released in version 1.6.3

Original comment by andrew.k...@gmail.com on 17 May 2008 at 6:25

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 19 May 2008 at 5:59

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 19 May 2008 at 6:06