简体   繁体   中英

Can OpenCV capture image from Microsoft Surface Pro camera?

Basically, I have a prototype ready with OpenCV that captures images from connected webcams. We need to ship it to customers and they include Surface Pro users, which has an integrated rear camera.

I am not sure whether it would work on that device or not ie whether my code would detect the integrated Surface Pro camera or not. We currently do not have access to such a machine.

So, is there a way validate this? I can think of two options:

  1. Is there any emulator available for Surface Pro camera?
  2. Does OpenCV provide a list of cameras which it supports?

Would really appreciate any form of assistance here!

OpenCV works via the OS camera drivers. If the Surface Pro camera appears as a normal camera to Windows OpenCV should see it as just another camera.

For record's sake - This Stack Overflow answer gives the code for iterating available devices.

And personally I can verify that OpenCV works with the Surface Pro cameras (front and rear). We are using the EMGU port of it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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