Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV does not have a Temporal Median algorithm. You can use one of the background subtraction algorithms and call getBackgroundImage. Or as you seem to be trying here, use numpy's median algorithm.

You don't seem to be stacking them up properly, at least in the code currently here, but the correct general idea.