Ask Your Question
0

VideoCapture serial id

asked 2014-03-24 18:38:53 -0600

dberga gravatar image

As well is known, the VideoCapture recognises the device id as the cameras are connected. For example, if I have a webcam and two cameras, the devices would be 1,2 and 3 (maybe). But what I wanna know how to get unique identificators per camera. I mean, if I connect the cameras in another way in the future, the device id would be changed as 1,3 and 2. But I don't want that, I want the devices to have unique serial identificators for saving captured data and stuff from the concrete camera.

So, how can I get the "serial id" or "unique id" for each camera?

Thanks in advance

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-24 19:56:36 -0600

Well, as far as I know this is not really an OpenCV issue. The device name of the cameras that you connect to your computer will depend on the operative system. So if, for example, you are using unbuntu/debian you should write udev rules so that every time you connect a camera with a certain serial number, it gets the same device name.

I hope this points you in the right direction.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-24 18:38:53 -0600

Seen: 3,795 times

Last updated: Mar 24 '14