My goal : To display a simple message box ("Object Detected") whenever an object is detected in the webcam.
Ive got a C++ opencv code which displays the webcam (display_cam.cc).
Ive another basic PySimpleGUI code which is being run inside another c++ code which simply displays a text box with text "Object Detected" (gui.cc).
Inside the display_cam.cc I entered this line system("./gui");
Now the problem is that whenever the camera detects an object, the GUI box flashes but then its halting/pausing the code. Ive to close the GUI box and then the camera stream continues, until an object is detected again and the code pauses again with GUI flash.