I am trying to create a patch, which analysis live video. The idea is to detect moving human shapes - which can enter the stage from any direction. Every shape has a different effect applied over them and as they encounter each other the effects should be interchanged between them.
With cv.jit.label I am able to detect shapes, isolate them and apply different effects to them...But I have huge problem with continuity. As you probably know cv.jit.label labels blobs uniquely, but when their order changes - i.e. which is top-left most or largest blob - blob loses its original label (1 becomes 2 etc.). This is of course problem as the idea is to switch effects between shapes.
Does anyone have a idea how to solve this problem ? Any help would be greatly appriciated.