简体   繁体   English

如何使用Windows窗体应用程序(非WPF)访问Windows平板电脑上的相机或连接的网络摄像机?

[英]How to access camera on a windows tablet or attached web cams using Windows Form Application (Not WPF)?

I am trying to develop a Windows Form Application (not WPF) where I would require to preview numbers of cameras available on a tablet or PC, take pictures and then save the pictures in the device. 我正在尝试开发Windows窗体应用程序(不是WPF),在该应用程序中,我需要预览平板电脑或PC上可用的相机数量,拍摄图片,然后将图片保存在设备中。 I am very new to this kind of application development and recently came accross Media Capture but I can not find a good lead to start with. 我对这种应用程序开发非常陌生,最近刚接触Media Capture,但我找不到很好的开始。

Can anyone let me know how to approach or how can I build the application with the aforementioned features or provide a good lead?? 谁能让我知道如何使用该方法,或者如何利用上述功能构建该应用程序或提供良好的线索?

PS Found a good example on https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622/ but it uses XML not the Win Form Application type..... PS在https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622/上找到了一个很好的例子,但是它使用XML而不是Win Form Application类型。

What kind of cameras do you have? 你有什么样的相机? If the cameras support onvif, then there is a good onvif camera software you could try. 如果相机支持onvif,那么您可以尝试使用一款不错的onvif相机软件 You can handle many cameras with it, you can take snapshots so I guess it could work for you. 您可以使用它处理许多相机,可以拍摄快照,所以我想它可能对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM