ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 WIA Select from multi video devices no dialog
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeaShooter_OMO

11 Posts

Posted - Feb 13 2012 :  10:28:18  Show Profile  Reply
Hello

I am using ImageEn 3.

With ImageEnVideoView how do you select a second video device like a camera without having a dialog box pop up?

Thank you

PeaShooter_OMO

fab

1310 Posts

Posted - Feb 13 2012 :  11:42:15  Show Profile  Reply
Hello,
the video source must be listed in VideoSourceList list. If you find it, you can select it the index in VideoSource property.
With this interface (VFW) could be necessary to use the driver dialog to select another source from the same capture device (this doesn't happen with DirectShow interface).
Go to Top of Page

PeaShooter_OMO

11 Posts

Posted - Feb 13 2012 :  13:07:22  Show Profile  Reply
Hello again

I have two exactly the same cameras and I am using WIA. The videosourcelist only has one entry, basically the driver device for them both.

I have tried using ConnectTo then ShowVideo = True but that pops up the dialog box which gives me the option to select which one of the cameras to use. I would like to be able to select the camera I want to use without having that dialog box popping up.

Are you saying that if I use DirectShow then I would be able to do it? Does DirectShow use the WIA interface driver or do I need to install the Twain for that?
Go to Top of Page

fab

1310 Posts

Posted - Feb 13 2012 :  13:26:59  Show Profile  Reply
Hello,

quote:
Are you saying that if I use DirectShow then I would be able to do it?

yes, it should be able to do it. You can try it using DirectShow demos.


quote:
Does DirectShow use the WIA interface driver or do I need to install the Twain for that?


No, DirectShow uses WDM drivers. I don't know a modern capture device that hasn't a WDM driver.
Go to Top of Page

PeaShooter_OMO

11 Posts

Posted - Feb 13 2012 :  14:15:48  Show Profile  Reply
I will give that a try and post my findings.

Thank you so much for your help. Much appreciated.

PeaShooter_OMO
Go to Top of Page

PeaShooter_OMO

11 Posts

Posted - Feb 15 2012 :  10:51:39  Show Profile  Reply
Hello Fabrizio

I have tested it with DirectShow and it works perfectly. I used one of the Directshow demos under the capture folder to get an idea on how it works. Interesting is the way that it uses ImageEnView and not ImageEnVideoView.

Thanks you so much for your time.

PeaShooter_OMO
Go to Top of Page

PeaShooter_OMO

11 Posts

Posted - Feb 15 2012 :  10:54:36  Show Profile  Reply
By the way... I tested it without installing any drivers for the cameras and it worked great. I am not sure whether it uses the WIA interface or a generic WDM driver. I did however install the drivers later on and that also worked perfectly.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: