def _onNewFrame(self, img, fn, **kwargs):
        md = self._md
        rc = md.detect(img)
        if rc > -1:
            md.annotateFrame(img, rect_color="yellow", contour_color=None, flow_color=None)
            if self._windowName != None: img.show(window=self._windowName, delay=1)
            #img_fg = md.getForegroundPixels()
            #img_fg.show("Foreground")
        return img
Compute assortativity for node attributes.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/VideoStreamProcessor.py/MotionDetectionVSP._onNewFrame--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/algorithms/assortativity/correlation.py/attribute_assortativity_coefficient