配置DSVL以显示来自Logitech9000摄像头的摄像头图像
问题描述:
我正尝试使用DSVL(DirectShow视频库)http://sourceforge.net/projects/dsvideolib/查看来自Logitech9000摄像头的摄像头供稿。该xml文件目前如下所示:配置DSVL以显示来自Logitech9000摄像头的摄像头图像
<?xml version="1.0" encoding="UTF-8"?>
<dsvl_input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Thomas\My Documents\projects\ARToolKit & DSVideoLib\ARVideoLib\DsVideoLib\DsVideoLib.xsd">
<camera show_format_dialog="false" friendly_name="Logitech Webcam Pro 9000">
<pixel_format>
<RGB24 flip_v="false"/>
</pixel_format>
</camera>
</dsvl_input>
但是,出现的图像看起来垂直倒置。我尝试在上面的配置中将flip_v的值更改为true,但它没有任何区别。有什么建议么?
答
在我观察DSVideoLib.xsd后,RGB24没有flip_v/flip_h选项,只有RGB32有。尽量让你的输入为RGB32,可以工作,取决于你的摄像头驱动程序。
答
网络摄像头有一个选项可以在高级设置中反转视频,最终得到一张直立的图像。