My setup consists of 3 USB 2.0 cameras connected to a USB 3.0 hub and then connected to computer. Cameras are independent of each other and the hardware is not synchronized. Goal is to capture an image from all these camera when an event occur, in this case just pressing a button.
I came across this opencv document page ,"VideoCapture::grab" & "VideoCapture::retrieve" but unable to find a simple example that i can understand/easy to use. Any help is greatly appreciated. I also see that many people are using multi threading, multi processing etc. and almost all of them are using "VideoCapture::read" rather than grab&retrieve.