Georgios Gerontakis
5 years ago
41 changed files with 100 additions and 78 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,22 +0,0 @@ |
|||
import cv2 |
|||
import zmq |
|||
import base64 |
|||
import numpy as np |
|||
|
|||
context = zmq.Context() |
|||
footage_socket = context.socket(zmq.SUB) |
|||
footage_socket.bind('tcp://*:5555') |
|||
footage_socket.setsockopt_string(zmq.SUBSCRIBE, np.unicode('')) |
|||
|
|||
while True: |
|||
try: |
|||
frame = footage_socket.recv_string() |
|||
img = base64.b64decode(frame) |
|||
npimg = np.fromstring(img, dtype=np.uint8) |
|||
source = cv2.imdecode(npimg, 1) |
|||
cv2.imshow("Stream", source) |
|||
cv2.waitKey(1) |
|||
|
|||
except KeyboardInterrupt: |
|||
cv2.destroyAllWindows() |
|||
break |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@ |
|||
{ |
|||
"version": 1, |
|||
"dgSpecHash": "BMGtCCk4FceRPZQ8UoY4BK0IG5v3lF+DQNRO7D8QeSza51b62rEvJioVn3CMuEhqg306+1i2Bgfp7PzRxm1UJg==", |
|||
"dgSpecHash": "Ag7lXZtqstH3xklYuTDl+YMeB0rg7JeJHg+s0sz+OCF4AU2HDCYiTkOcOpzkQQOf7ny4zGjQXB0BwUALr06mnQ==", |
|||
"success": true |
|||
} |
Loading…
Reference in new issue