Ask Your Question
0

How to open cam using device name in Windows

asked 2018-08-20 23:56:36 -0500

arc gravatar image

CV_WRAP virtual bool open(const String& filename, int apiPreference); When using VideoCapture::open, How to find the filename(device name) of USB webcam in Windows?

For example in Linux shall be "/dev/videoxx". What's the URL for windows? And how to find it?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-08-21 00:23:33 -0500

berak gravatar image

sorry, but this is simply not possible, you can only address webcams using a numerical id (-1,0,1,2,3,...)

edit flag offensive delete link more

Comments

1

If I having two same cameras, How to identify the camera? If open Cam1 using id 0, open Cam2 using id 1. When the PC reboot & restart program, Does id 0 still indicates Cam1? and id 1 still indicates Cam2?

arc gravatar imagearc ( 2018-08-21 01:38:39 -0500 )edit
1

it's really hard

jsxyhelu gravatar imagejsxyhelu ( 2018-08-23 07:22:23 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-08-20 23:55:22 -0500

Seen: 277 times

Last updated: Aug 21 '18