Detect two objects in contact
Suppose two objects in motion are in contact with each other. There could be a scenario when contact breaks for a while, so I want to capture that moment. How can I achieve it??
Would be nice to provide some images. But one thought would be that since the two object are in contact then you are gonna have one blob, aka. object, detected whenever they split you will have two blobs detected. Thus at that point you can trigger and imwrite() instance. It is a simple approach, however without images and a better description it is hard to guess, isn't it?
like @theodore said, it all depends on your application and what you already have. Do you have trackers in place for each blob?