Open kheki4 opened 1 year ago
Dealt here: https://github.com/sasfog/Open-PupilEXT/pull/132
However, see notes. Only exception-level is handled properly now, event handler level catching of device removal seems not to work. (Grabbing itself does not trigger an exception for this, and the heartbeat-based checks do not produce events for some reason.) Important to note that webcam does not yet check for sudden device removal. To be done later.
The proper behaviour would be to:
See sample code on Basler website for detecting camera device removal: https://docs.baslerweb.com/pylonapi/cpp/sample_code#deviceremovalhandling
Bonus: display a message in the statusbar or in a window.