@erik My project is based on standalone mode, In the example you did provide there are the following three lines of code:
buf = dai.Buffer()
buf.setData(DETECTION)
switch.send(buf)
Any idea on how to make it work in standalone? The problem is related to the call to dai.Buffer()
which cannot be imported within the script node.
Thanks in advance for your help.