I am trying to send a sequence of images from a "master" pi to two other pis on the same network. Each "slave" pi will need to receive a different image from the "master" pi but the two images will need to be displayed simultaneously on both of them for a few seconds each (it's a kind of stereoscope so one pi will display the "left eye" image and the other will receive the "right eye" image). I am using python opencv to display the images.
Sending the image on both pis is not a problem as I have achieved that using sockets but the problem is that the images quickly get out of sync, perhaps because the loops used to display the images on each pi don't start or finish at the same time or perhaps because the images are not sent at the same time from the master pi. Using threads on the master pi to minimise sending delay do not seem to resolve the problem. I was wondering whether anyone has implemented something similar and if anyone has any suggestions on how to sync the displays?