Server Network - person-in-hangang/HanRiver GitHub Wiki
Connect with Client - Socket setting
This is a connection operation for socket communication with the clients - 119 App, Detection camera, Tracking camera.
Server receive
1. From Detection camera : photo of person on the bridge who is measured to have fallen, bounding box of person
2. From Tracking camera : photo of person's trajectory falling into the water, location information
Server send
1. To 119 App : photo of person on the bridge who is measured to have fallen, calculated person's height
2. To 119 App : photo of person's trajectory falling into the water, location information
3. To 119 App : information of calculated three most probable features by PSR
Step 1. Define a server socket with your port number
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
server_socket.bind((host, port))
Step 2. Enables to receive client connection requests.
server_socket.listen()
Step 3. All information exchanged is processed by each thread client.
- Creates a passage for each data exchange with 119 App, Detection camera, Tracking camera each other.