def addFrame(self, img):
        if self._no_annotations:
            img2 = img
        else:
            img2 = pv.Image(img.asAnnotated())
            
        if self._bw:
            cv.WriteFrame(self._out, img2.asOpenCVBW())    
        else:
            cv.WriteFrame(self._out, img2.asOpenCV())
@param img: A pyvision img to write out to the video.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/VideoStreamProcessor.py/VideoWriterVSP.addFrame