geaxgx / depthai_blazepose

MIT License
322 stars 68 forks source link

run as standalone network device on OAK-D Pro POE #28

Open stephanschulz opened 2 years ago

stephanschulz commented 2 years ago

Hello.

I know you might not have a POE device. But i was wondering if you know how i can make you code run without the need of a terminal window being open.

Right now i cd to my project repo and call python3.8 demo_osc.py -e --oscIP 10.100.0.101 --oscPort 12345 -xyz I have modified your code already to not show a live video, not any window other than the terminal window. I added code to send the skeleton data over UPD / OSC.

Thanks for your advice.

geaxgx commented 2 years ago

If I understand correctly, the sending of the skeleton data over UPD/OSC is now done by the device (I guess via a script node).

Isn't the standalone mode what you need ? https://docs.luxonis.com/projects/api/en/latest/tutorials/standalone_mode/#converting-a-demo-to-standalone-mode

stephanschulz commented 2 years ago

thanks for the link. i will study how to do the whole bootloader flashing.

This is my OSC sending code but i am not certain is it needs to be converted to be part of a pipeline. Not sure how to do that yet. So much learning to do :) https://github.com/stephanschulz/depthai_blazepose/blob/main/depthai_osc/oscSender_osc.py#L103

geaxgx commented 2 years ago

You may have a difficulty here. You are using third party python libraries (pythonosc) that are probably not supported on the script node. Here are the list of python modules and libraries: https://docs.luxonis.com/projects/api/en/latest/components/nodes/script/#available-modules-and-libraries But maybe the code of the function you need is simple enough to be implemented with the supported librairies ?