util.py
def show_upload_image(img_path):
    """
    Display the test image on predicted result
    Parameters:
        img_path: a string-valued file path to an image
    Return:
        None
    """
    img = cv2.imread(img_path)
    fig = plt.figure(figsize=(10, 5))
    ax = fig.add_subplot(1, 2, 2, xticks=[], yticks=[])
    ax.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))

    Display the test image on predicted result
    Parameters:
        img_path: a string-valued file path to an image
    Return:
        None
    
Display the test image on predicted result
Display the test image on predicted result
def show_upload_image(img_path):
    img = cv2.imread(img_path)
    fig = plt.figure(figsize=(10, 5))
    ax = fig.add_subplot(1, 2, 2, xticks=[], yticks=[])
    ax.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
def show_upload_image ( img_path ) : img = cv2 . imread ( img_path ) fig = plt . figure ( figsize = ( 10 , 5 ) ) ax = fig . add_subplot ( 1 , 2 , 2 , xticks = [ ] , yticks = [ ] ) ax . imshow ( cv2 . cvtColor ( img , cv2 . COLOR_BGR2RGB ) )
Display the test image on predicted result
Display the test image on predicted result
"""
    Display the test image on predicted result
    Parameters:
        img_path: a string-valued file path to an image
    Return:
        None
    """
img_path
a string-valued file path to an image
a string - valued file path to an image