我该如何选择相机 [英] How Can I Choose The Camera
本文介绍了我该如何选择相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有多台相机,我该如何选择其中一款?我在带有Windows 7的平板电脑上启动我的应用程序。该程序采用前置摄像头,但我需要使用后置摄像头。我正在使用ozeki camera sdk。
解决方案
这个链接可以帮到你 - 如何获得前面和后面的访问权限Windows 8.1 Store App中的后置摄像头 [ ^ ]。
整个想法是枚举设备信息对象并获取相应的摄像头。
DeviceInformation frontWebcam =(来自 webcam < span class =code-keyword> in webcamList
其中 webcam.EnclosureLocation!= null
&& webcam.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Front
选择网络摄像头)。 FirstOrDefault();
If i have more than one camera, how can i choose one of them? I'm launching my application on a tablet with windows 7. The program take the front camera, but i need to use the rear camera. I'm using ozeki camera sdk.
解决方案
This link should help you - How To Get Access to Front & Back Camera in Windows 8.1 Store App[^].
The whole idea would be to enumerate through the device information object and get the appropriate cameras.
DeviceInformation frontWebcam = (from webcam in webcamList where webcam.EnclosureLocation != null && webcam.EnclosureLocation.Panel == Windows.Devices.Enumeration.Panel.Front select webcam).FirstOrDefault();
这篇关于我该如何选择相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文