View Full Version : How Can I Connect two FW Camera
September 13, 2004, 13:23:57
I would like connect 2 FW DMM Camera , But your sample "Demoapp" only found one , what's wrong ??
How Can I make it work ???
September 13, 2004, 13:34:37
you must install the Imaging Source driver for both cameras. If you only install the driver for one cameras, windows uses the standard DCam driver for the next camera, even if it is the same model. Windows differs between the cameras using the serial number of the cameras.
September 13, 2004, 14:15:21
the 2nd camera started thank you!!
I send my project to your mail account ,
I can start the 2nd camers , but the problem is both camera image mixed together , What can i do in listener ??
September 14, 2004, 07:20:47
In the program we wrote together, we have a initialize method, that recieves the window handle of the window where to display the live video in. Just pass the handel of the second display window to this method.
September 14, 2004, 19:01:36
I show "test.jpg" On live , I can do it with both cameras , But How can I do it only in singla Camer ??
For example :
I want show "test.jpg" in Camera 1 &
show "test2.jpg" in Camera 2 .
How can I do somthing with single camera ??
& How can I do another things in another camera ????
Thank you for your Help !!
September 15, 2004, 07:30:50
You have "test.jpg" hardcoded as name in the CListener class. You have the CListener class instantiated twice in an array with. Also you have two grabbers, one for each connected camera. You assgined CListener to grabber 1 and CListener to grabber 2. Now, both grabbers would save their images to one file named "test.jpg", because the CListener object has this name hardcoded and is not able to change it.
You should create a new member in your CListener class, that contains the name of the image to save to (CString type). When you assign the CListener to your grabber, you should assign the image name (test1.jpg and test2.jpg) to the image file name of your CListener class. Then each grabber would save the image in an own file name.
September 15, 2004, 07:38:41
Agree you point , But the problem is how can I know
September 15, 2004, 08:33:12
somewhere in your source code (Visiondoc.cpp starting at line 198) there are the listeners assigned to your grabber. There you can also assigne the file names for the images to save.
In you CListener class insert a new public member:
Then you only need to write
m_cListener.m_cFileName = "Test1.jpg"
m_cListener.m_cFileName = "Test2.jpg"
In CListener.cpp you only need to exchange "test.jpg" with m_cFileName.
September 15, 2004, 18:27:16
How can I Change it ??
m_cFileName replace "test.jpg" No work
:confused: :confused: :confused:
September 16, 2004, 09:20:24
The "L" in front of the the string, means, that you use wchar (two bytes per character), also named unicode. You have now two way:
- find the Bitmap object in a non unicode library
- change the m_cFileName string to wchar
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.