PDA

View Full Version : twoView on Windows.


philip_lamb
May 14th, 2005, 11:09 AM
This is a FAQ running twoView on Windows:


The TwoView example compiled ok. But, when I run the program, after setting the properties of the two cameras, appears an error window with the message "No combination of intermediate filters could be found to make the connection". At the console window appear the warning:

demoARSetupCamera(): Unable to open connection to camera 2
main(): Unable to setup 2 AR cameras
Quitting.....

This message appears even when just one camera is connected. I have run the program in several PCs with the same results. Does anybody know why this happens?


this is probably because you haven't edited the "vconfs"
parameter array to match your setup (twoView.c line 546). You will
need to specify two different camera setups in this array. The
easiest way to specify the cameras is to add the
"friendlyName=some_camera_name_here" parameter. See
http://www.ims.tuwien.ac.at/~thomas/dsvideolib_doc.php or the help
text in lib/SRC/VideoWin32DirectShow/videoWin32DirectShow.cpp line
136 onwards for the parameters you can use.

Regards
Phil.

philip_lamb
December 14th, 2005, 11:14 AM
Update: the above information applies only to ARToolKit versions 2.65 through 2.69.

moby
February 16th, 2006, 08:02 AM
Update: the above information applies only to ARToolKit versions 2.65 through 2.69.

And how do it with ARToolKit versions 2.7 and above?

Somehow I am not able to find the proper "deviceName" for my cameras and thus can not create appropriate XML camera configuration file. Whatever I take as "deviceName" I get the video from the first (default) camera. Also the string I got from .NET "grapedt" does not work.

My configuration:
WinXP
2x Unnibrain FireI Cameras (FireWire, chained)
AR Toolkit 2.71.2

Any help ?

Thanks,

moby

zhangdapeng_scu
December 8th, 2006, 05:59 PM
moby !
Have you sloved this problem? I used two same cameras ,but I still not know how to modify the XML file. Can you tell me how to do it?

moby
December 8th, 2006, 10:37 PM
Hi, I moved to Linux, here it works fine. I changed twoView.c the following:


in main:
(...)

const char *cparam_names[] = { // Camera parameter names.
"Data/UnibrainFireI-1.dat",
"Data/UnibrainFireI-1.dat",
};


It's the same configuration file for both cameras, the system takes the second camera automatically.

Regards, Habakuk

nes
December 27th, 2006, 04:50 PM
I had no luck getting twoview to work on WindowsXP using 2 of the same type of cameras (both USB) or (both firewire). I tried using both friendly_name and device_name values. However, once I went with one of each using the friendly_name value taken from GraphEdit it worked fine.

e.g.

Camera 1: USB
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Program Files\ARToolKit &amp; C:\Program Files\ARToolKit\DSVL\DsVideoLib.xsd">
<camera show_format_dialog="true" friendly_name="Logitech QuickCam Pro 4000">
<pixel_format>
<RGB32 flip_h="false" flip_v="true"/>
</pixel_format>
</camera>
</dsvl_input>

Camera 2: FireWire
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Program Files\ARToolKit &amp; C:\Program Files\ARToolKit\DSVL\DsVideoLib.xsd">
<camera show_format_dialog="true" inputDevice="WDM_CAP" friendly_name="1394 Desktop Video Camera">
<pixel_format>
<RGB32 flip_h="false" flip_v="true"/>
</pixel_format>
</camera>
</dsvl_input>

I thought I should mention this because I was about to give up and move to Linux but finally this worked for me.

matena
April 19th, 2007, 06:50 AM
Good evening (GMT+1)
I run successfully twoView on Windows with 2 USB CREATIVE cameras.
I found the corresponding HW strings in GraphEdit which can be downloaded (outside DirectX SDK) at http://www.reactor9.com/typo3conf/ext/naw_securedl/secure.php?u=0&file=fileadmin/files/graphedt.zip&t=1177011276&hash=420fb2a04101f56afc4c3de41c308014
(less than 200kb download).

Then in Menu -> add Filter I found my both cameras (WDM)

One only needs to replace & by &amp;

My TWO xml files look like:

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Thomas\My Documents\projects\ARToolKit &amp; DSVideoLib\ARVideoLib\DsVideoLib\DsVideoLib.xsd">
<camera show_format_dialog="true" friendly_name="Video Blaster WebCam 5 (WDM)">
<device_name>@device:pnp:\\?\usb#vid_041e&amp;pid_400c&amp;mi_00#6&amp;4b4c a59&amp;0&amp;0#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global</device_name>
<pixel_format>
<RGB32 flip_h="false" flip_v="true"/>
</pixel_format>
</camera>
</dsvl_input>


and

<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Thomas\My Documents\projects\ARToolKit &amp; DSVideoLib\ARVideoLib\DsVideoLib\DsVideoLib.xsd">
<camera show_format_dialog="true" friendly_name="Video Blaster WebCam 3/WebCam Plus (WDM)">
<device_name>@device:pnp:\\?\usb#vid_05a9&amp;pid_a511#5&amp;1405a6e5&amp;0 &amp;2#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global</device_name>
<pixel_format>
<RGB32 flip_h="false" flip_v="true"/>
</pixel_format>
</camera>
</dsvl_input>

One has to change in the twoView.c
#if defined(_WIN32)
"Data\\WDM_camera_flipV.xml",
"Data\\WDM_camera_flipV.xml",
to
#if defined(_WIN32)
"Data\\WDM_camera_flipV_web3.xml",
"Data\\WDM_camera_flipV_web5.xml",

It works.

I only get super low frame rate for camera 1 (0.4fps) but this may be because of my HW (PIII @1,13GHz)

Hope that this might help someone.

Best regards
Lukas

LucasLermen
October 10th, 2008, 03:14 AM
Im having the same problem that Matena had. Camera 0 works fine, but camera 1 has a really slow fps, and the problem cant be with my pc (Core 2 duo 2.0 Ghz, 3Gb of RAM, Sata HD).
Other point is that the twoView simply doesnt find the markers, and I guess it was supposed to find. Anybody know something about how to make it find the markers? Im working on windows.

LucasLermen
October 15th, 2008, 02:41 AM
UP.
Nobody else had this problem, only me? :(
I really dont know why it doesnt find the marker.