JanCBrammer / OpenHRV

Heart rate variability (HRV) biofeedback with Polar ECG chest straps.
GNU Lesser General Public License v2.1
126 stars 26 forks source link

Whether it can be used in other systems #37

Open dangzhongzheng opened 4 months ago

dangzhongzheng commented 4 months ago

Hello, I would like to know whether it is possible to implement the call to the H10 chest belt and obtain real-time data in the system developed by Unity3D。

JanCBrammer commented 4 months ago

Thanks for your question @dangzhongzheng. OpenHRV isn't designed to interface with other systems. However, you could re-implement or integrate sensor.py and (the relevant logic from) model.py in your application.

Interestingly, OpenHRV was originally build for the exact purpose you're describing: interfacing with a Unity application. OpenHRV used to communicate with Unity via a Redis queue (see also #4). Have a look at the Redis implementation in the commits prior to f4c1217.

dangzhongzheng commented 4 months ago

Thanks a lot for the response,this will help me a lot!