parent
ac27c3ac7d
commit
d0dd9759ce
@ -0,0 +1,19 @@
|
|||||||
|
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)
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue