bonsai-rx / deeplabcut

A Bonsai interface for real-time markerless pose estimation using DeepLabCut
MIT License
48 stars 9 forks source link

I want to connect Unity and Bonsai and send mouse head coordinates #22

Open Inagaki-0228site opened 8 months ago

Inagaki-0228site commented 8 months ago

Using DeepLabCut, output the X,Y coordinates of the mouse head from above from Bosai. From there, I am thinking of sending x,y coordinate (Point2f) data to Unity and manipulating the object. However, I would like to exchange data between Unity and Bonsai, but I don't know how. How can I send head coordinate data to Unity? スクリーンショット 2023-10-25 181259 スクリーンショット 2023-10-25 181500

bruno-f-cruz commented 8 months ago

The easiest would be to open a ZMQ or OSC connection between the two applications. Check out the [ZMQ package] documentation(https://bonsai-rx.org/zeromq/articles/recipes.html).