Skip to content
Updated Multi Server Mode for NetGear API (markdown) authored by Abhishek Thakur's avatar Abhishek Thakur
...@@ -255,7 +255,7 @@ from imutils import build_montages ...@@ -255,7 +255,7 @@ from imutils import build_montages
import cv2 import cv2
#activate multiserver_mode and filter 5567 #activate multiserver_mode and filter 5567
options = {'multiserver_mode': True, filter: 5567, flag : 0, copy : False, track : False} options = {'multiserver_mode': True, 'filter': 5567, 'flag' : 0, 'copy' : False, 'track' : False}
#Change the Client with your system IP address and port address of each unique Server((5566,5567) in our case), plus activate pattern Pub/Sub(`2`), `recieve_mode`, and `logging` for debugging #Change the Client with your system IP address and port address of each unique Server((5566,5567) in our case), plus activate pattern Pub/Sub(`2`), `recieve_mode`, and `logging` for debugging
client = NetGear(address = 192.168.x.x, port = (5566,5567), protocol = 'tcp', pattern = 2, receive_mode = True, **options) client = NetGear(address = 192.168.x.x, port = (5566,5567), protocol = 'tcp', pattern = 2, receive_mode = True, **options)
...@@ -322,7 +322,7 @@ import cv2 ...@@ -322,7 +322,7 @@ import cv2
stream = cv2.VideoCapture(0) stream = cv2.VideoCapture(0)
#activate multiserver_mode #activate multiserver_mode
options = {'multiserver_mode': True, flag : 0, copy : False, track : False} options = {'multiserver_mode': True, 'flag' : 0, 'copy' : False, 'track' : False}
#change following IP address '192.168.1.xxx' with Client's IP address and assign unique port address(for e.g 5566). #change following IP address '192.168.1.xxx' with Client's IP address and assign unique port address(for e.g 5566).
server = NetGear(address = 192.168.x.x, port = '5566', protocol = 'tcp', pattern = 2, receive_mode = False, **options) # and keep rest of settings similar to Client server = NetGear(address = 192.168.x.x, port = '5566', protocol = 'tcp', pattern = 2, receive_mode = False, **options) # and keep rest of settings similar to Client
...@@ -370,7 +370,7 @@ import cv2 ...@@ -370,7 +370,7 @@ import cv2
stream = PiGear(resolution=(640, 480), framerate=60).start() stream = PiGear(resolution=(640, 480), framerate=60).start()
#activate multiserver_mode #activate multiserver_mode
options = {'multiserver_mode': True, flag : 0, copy : False, track : False} options = {'multiserver_mode': True, 'flag' : 0, 'copy' : False, 'track' : False}
#change following IP address '192.168.1.xxx' with Client's IP address and assign unique port address(for e.g 5567) which is different from server-1. #change following IP address '192.168.1.xxx' with Client's IP address and assign unique port address(for e.g 5567) which is different from server-1.
server = NetGear(address = '192.168.1.xxx', port = '5567', protocol = 'tcp', pattern = 2, receive_mode = False, logging = True, **options) # and keep rest of settings similar to Client server = NetGear(address = '192.168.1.xxx', port = '5567', protocol = 'tcp', pattern = 2, receive_mode = False, logging = True, **options) # and keep rest of settings similar to Client
... ...
......