pyfast_adt.main.client_socket_stream

Functions

receive_img(queue, stop_event, root[, host, port])

receive_img_request(queue, stop_event[, destination, ...])

update_image(label, queue)

main([source])

release_server(client_socket, root)

print_stop_event(stop_event, thread)

shuffle_chip_order(raw[, order])

Shuffle the chips in the image based on the given order.

Module Contents

pyfast_adt.main.client_socket_stream.receive_img(queue, stop_event, root, host='127.0.0.1', port=8089)
pyfast_adt.main.client_socket_stream.receive_img_request(queue, stop_event, destination='image', host='127.0.0.1', port=8089)
pyfast_adt.main.client_socket_stream.update_image(label, queue)
pyfast_adt.main.client_socket_stream.main(source='preview')
pyfast_adt.main.client_socket_stream.release_server(client_socket, root)
pyfast_adt.main.client_socket_stream.print_stop_event(stop_event, thread)
pyfast_adt.main.client_socket_stream.shuffle_chip_order(raw, order=[1, 2, 3, 4])

Shuffle the chips in the image based on the given order.

Parameters: - raw: np.ndarray, Input 512x512 image. - order: list of int, Desired order of chips.