I've been trying to solve a problem for the past week and would be very grateful if someone could point me in the right direction for a solution. (This is my first time posting here in the forums)
I'm experimenting with blob detection data being sent via UDP, but i'm not using the cv.jit objects.
I'm using something called blosc (a standalone MacOsx program which tracks blobs and sends the data via UDP)
I'm receiving the data into Max via UDP, and if i print the UDP data (using 'print udp'), the following data is sent to the Max Window.
udp: /blosc/data 0 0.246875 0.3375 0.001074
udp: /blosc/data 1 0.325 0.216667 0.000469
udp: /blosc/data 2 0.59375 0.2125 0.000456
the data is formatted as /blosc/data/
is the blob number (int) is the blob size (float)
, are the blob coordinates for that blob (float, float)
I've managed to split the data using unpack, but my problem is ordering the data so i can use it effectively.
Ideally i would like to order the data dependent on the blob id.
so, if i receive /blosc/data 0 (then i'd like to output the x,y,area for blob 0).
and if i receive /blosc/data 1 (then i'd also like to output the x,y,area for blob 1)
I've tried using route, select, funnel, spray, coll but with no luck.
Currently i've managed to output blob 0
and assign (x to pan left right)
and also assign (y to raise or lower frequency)
But if more than one blob appears on the screen the data gets jumbled up.
Is it possible to filter the UDP data, dependent on the blob , and independently send the corresponding , ,
data for that blob only?
Apologies if i've not managed to explain my problem clearly, but i'd really appreciate if someone can help me.
Shown below is a simple patch to hopefully describe my problem more clearly.
Thanks if anyone can help.