如何在c + +熄灭的情况下连接网络摄像头 [英] How to connect webcam in c++ with the light off
本文介绍了如何在c + +熄灭的情况下连接网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不亮的情况下使用c ++连接网络摄像头.
How to connect webcam in c++ with the light off.
Help me instruction!
推荐答案
如果有帮助,请查看以下内容:
使用MFC C/C ++的最简单的网络摄像头程序 [如何在c ++ Win32中连接网络摄像头 [
Have a look at these if they help:
simplest webcam program with MFC C/C++[^]
How to connect Webcam in c++ Win32[^]
我同意,这是一个硬件问题.
您是否尝试过用胶带覆盖光?
I agree, it''s a hardware problem.
Have you tried covering the light with electrical tape?
^ ]是您最好的选择
在 ^ ],但它们基于C#-可能可能无济于事/替代
通过创建CLSID_FilterGraph
创建一个IGraphBuilder
,然后从CLSID_CaptureGraphBuilder2
中创建一个ICaptureGraphBuilder2
,调用其SetFiltergraph
方法,然后使用RenderStream
方法
您可以使用 graphedt.exe [ ^ ]与DirectShow一起玩
DirectShow[^] is your best bet
There are a few examples of directshow projects available here on CodeProject[^] , but they''re C# based - that may or may not be helpful/an alternative
Create anIGraphBuilder
by creating aCLSID_FilterGraph
, then aICaptureGraphBuilder2
fromCLSID_CaptureGraphBuilder2
, call itsSetFiltergraph
method, then use theRenderStream
method
you can use the graphedt.exe[^] to play with DirectShow
这篇关于如何在c + +熄灭的情况下连接网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文