|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#3
|
||||
|
||||
|
Re: Dual Cameras?
Quote:
It would be nice if you could: If (button1) { CameraServer::GetInstance()->StartAutomaticCapture("cam0"); } if (button2) { CameraServer::GetInstance()->StartAutomaticCapture("cam1"); } But, that fails miserably. This is due to several reasons. First, the StartAutomaticCapture ends up creating threads, opening sockets etc. for which there is no clean shutdown method in the class. Second, even if there were a clean shutdown method, there is an m_camera member in the class that is hard coded to camera 0. So, there is no way to clean up if you shut could shut the class down. And, if you tried to force it in Linux by killing the thread manually, this will undoubtedly come back to haunt you toward the end of the match because the thread probably has resources tied up. So, does anyone have any other ideas? TIA, Mike |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|