2014-09-10 05:59:43 -0600 | commented question | How to identify multiple cameras I use Windows. Yes, map using file descriptor is a good idea for linux :) I tried with device path, like \?\usb#vid_045e&pid_074a&mi_00#7&243504bc&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global. However, I only got an error message. |
2014-09-09 16:36:43 -0600 | asked a question | How to identify multiple cameras Hello, I use two cameras at same computer, to capture photos and videos. Each camera is responsible for unique tasks. I don't have problems to open parallel cameras and capture videos or pictures. For now, I used just index number to open each device: No problem at this point, all works fine. However, at first time I don't know which index is from which camera. I need capture a simple picture to discover the position. (LEDs from device aren't available) The index is the same sequence ever. (good) Although, some times I get some hardware error from a camera (normally at index 0), as result, OpenCV provide just index 0 to open. So, at this point I need look the video capture to identify which camera is working. (bad) I tried use the "Device Path" as an unique id for each camera: However, I get just an error message: warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:545) Then, I need a mechanism that informs which camera is connected in which index. How is possible? (Direct Show is an option) |