(self, use_orig)
Get a base image for drawing: Either the input image if <use_orig> is True or an empty (black) image.
Get a base image for drawing: Either the input image if <use_orig> is True or an empty (black) image.
Get a base image for drawing : Either the input image if <use_orig > is True or an empty ( black ) image .
def _baseimg_for_drawing(self, use_orig):
        """
        Get a base image for drawing: Either the input image if <use_orig> is True or an empty (black) image.
        """
        if use_orig:
            return np.copy(self.input_img)
        else:
            return np.zeros((self.img_h, self.img_w, 3), np.uint8)
def _baseimg_for_drawing ( self , use_orig ) : if use_orig : return np . copy ( self . input_img ) else : return np . zeros ( ( self . img_h , self . img_w , 3 ) , np . uint8 )