Thanks I understand this.
It still doesn't work as I'd like.
I initiated the sock etc.
MESSAGE = int(detection.xmax * width)
sock.sendto(int(detection.xmax * width), (UDP_IP, UDP_PORT))
after the bbox.append() ...
but it doesn't seem to fire osc message.
I don't get it. code is ok
sock defined and assigned globally
after the import:
UDP_IP = "127.0.0.1"
UDP_PORT = 6666
MESSAGE = "!"
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP