Hi all,

I am working on depthai-experiments/gen2-cumulative-object-counting/standalone at master · luxonis/depthai-experiments · GitHub.
I want to add some changes to the code, by being able to send some commands from host to the camera while the code is running in standalone mode ( command responsible for reseting the counter for example ) . Is this possible?
The use of the script node will make it complicated to modify params. If we cannot do it with the script node existing , is there an alternative for this ?

Thank you

    Hi martin181818
    You can do that by adding a send method to the host script that would, when read on the oak side, instruct the counter to reset. You could send a buffer carrying the "reset" message from within host.py script and read it inside the oak.py.

    Regards,
    Jaka

      jakaskerl
      Thank you very much for your reply.
      I was trying to do so but I did not manage to do it because inside the script node the mqtt functions are not recognized.

        Hi martin181818
        If you need to use the MQTT functions, check this experiment which uses a custom ported MQTT library that works inside a script node.

        Thanks,
        Jaka