Using merge_cb to only merge blobs aligned in Y-axis


I’m doing some blob tracking, to pick out human silhouettes, and would like to only merge smaller blobs, if they are aligned in Y, ie. human shapes.

It looks like the merge_cb callback would be good for this, but I can’t fin any documentation for it.

Is there someone who could write a little example, just containing the img.find_blobs() and the callback function.

All the best.


See the examples → Pixy Emulation. You basically just pass the python function name that takes two blob arguments and then return True or False.

Amazing! Thank you, makes sense now.

And it works!