UI calls in different threads (imshow) how to detect and avoid.
As stated by different sources, such as https://github.com/opencv/opencv/issu... interacting with UI only works well in the main thread. However, this poses problems when writing a library and having no control over which thread will call which function How can one identify cases in which UI functions are not called by the main thread so that they e.g. be disabled preventing freeze?