I have a code using opencv that predicts how many fingers do I show to the camera in real time. I also have a small gui that includes a few buttons in a tkinter window. I want that prediction from cv2window to generate an event to the buttons from the tkinter window. When i show 1, to be pressed the first button in real time.
How can I make that connection between them and also to be displayed both camera frame and window in the same time?