-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Python bindings for VideoCapture::waitAny #21826
Copy link
Copy link
Closed
Description
related: #15100
Everything in VideoCapture has Python bindings except for the new waitAny facility. I think that would be generally useful to have in Python too.
if the bindings generation doesn't imply a regular signature, I'd propose
waitAny(streams, timeoutNs=0) -> readyIndexWhere streams is a list of VideoCapture instances and readyIndex is a python list of indices into streams. No need to preserve the boolean return value. It's only false if the list is empty.
NB: Docs are inconsistent in their naming. Single mention of "streamReady". "readyIndex" was probably intended. It's not a singular value either ("index"), it's a vector/list (indices).
Reactions are currently unavailable