Hello.
I was make multi-thread program for multi-viewer for cameras. I have 2 questions. And i've takes opencv v3.4.4.
- When it camera was down, open(url) functions return not immediately. After about 30 seconds, it was return. How can i set this open function running as non-blocked?(like as when it camera not working return -1 immediately)
2. I've made multi-threads for multi-viewers on one Process. So, multi thread try to connect at the same time to use VideoCapture::open(url) fucntion. Then return from open() was not seems like independent each threads. - 1st try takes 3sec, - 2nd try takes 6sec, - ... - #n th try takes 3*n sec
I think try take time have to similar, but the result was not. Like as when 1st camera connection was finish, 2nd connection was start......... do until last connection.
Please help.