src/crop_xray_vector.py
def hide_names_mask(mask):
    '''Simple thresholding still has the text as visible, so this function
    dilates the image to the point where the original text is unrecognisable.
    Arguments:
        mask: Image obtained from projection.
    Returns:
        mask: Masked image after performing a dilation on the mask.
    '''
    # expand the mask so it completely hides the names
    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (9, 9))
    return cv2.dilate(mask, kernel, iterations=3)
Simple thresholding still has the text as visible, so this function
    dilates the image to the point where the original text is unrecognisable.
    Arguments:
        mask: Image obtained from projection.
    Returns:
        mask: Masked image after performing a dilation on the mask.
    
Simple thresholding still has the text as visible, so this function
dilates the image to the point where the original text is unrecognisable.
Simple thresholding still has the text as visible so this function dilates the image to the point where the original text is unrecognisable .
def hide_names_mask(mask):
    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (9, 9))
    return cv2.dilate(mask, kernel, iterations=3)
def hide_names_mask ( mask ) : kernel = cv2 . getStructuringElement ( cv2 . MORPH_ELLIPSE , ( 9 , 9 ) ) return cv2 . dilate ( mask , kernel , iterations = 3 )
Simple thresholding still has the text as visible, so this function
dilates the image to the point where the original text is unrecognisable.
Simple thresholding still has the text as visible so this function dilates the image to the point where the original text is unrecognisable .
'''Simple thresholding still has the text as visible, so this function
    dilates the image to the point where the original text is unrecognisable.
    Arguments:
        mask: Image obtained from projection.
    Returns:
        mask: Masked image after performing a dilation on the mask.
    ''' # expand the mask so it completely hides the names
Masked image after performing a dilation on the mask.
Masked image after performing a dilation on the mask .
mask
mask
Image obtained from projection.
Image obtained from projection .