You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
655 B

from Interfaces.RealSense import RealSenseController
from Server.ServerProvider import RealSenseObjectDetectionServer
def get_shot(controller):
depth_matrix = controller.acquisition.get_depth_image()
color_matrix = controller.acquisition.get_color_image()
print(f"RS Data: {depth_matrix.shape}")
return depth_matrix, color_matrix
if __name__ == "__main__":
controller = RealSenseController()
interface = RealSenseObjectDetectionServer()
depth_matrix, color_matrix = get_shot(controller)
response = interface.send_images(color_matrix, depth_matrix)
if response:
print("Ответ сервера:", response)