Refactor video_presence to class

This commit is contained in:
2019-08-04 22:15:28 +02:00
parent 71a00d4642
commit 91256c65fe
3 changed files with 172 additions and 2 deletions
+2 -1
View File
@@ -7,4 +7,5 @@ while True: # show streamed images until Ctrl-C
rpi_name, image = image_hub.recv_image()
cv2.imshow(rpi_name, image) # 1 window for each RPi
cv2.waitKey(1)
image_hub.send_reply(b'OK')
image_hub.send_reply(b'OK')