vis/display.py
def process_image(img, action):
    """
    Process an image and display it in a window.
    Window closes after pressing any key.
    :param img: 
    :param action: name of the function to be executed upon img
    :return: 
    """
    action(img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

    Process an image and display it in a window.
    Window closes after pressing any key.
    :param img: 
    :param action: name of the function to be executed upon img
    :return: 
    
Process an image and display it in a window.
Window closes after pressing any key.
Process an image and display it in a window . Window closes after pressing any key .
def process_image(img, action):
    action(img)
    cv2.waitKey(0)
    cv2.destroyAllWindows()
def process_image ( img , action ) : action ( img ) cv2 . waitKey ( 0 ) cv2 . destroyAllWindows ( )
Process an image and display it in a window.
Process an image and display it in a window .
"""
    Process an image and display it in a window.
    Window closes after pressing any key.
    :param img: 
    :param action: name of the function to be executed upon img
    :return: 
    """
None
img
None
action
name of the function to be executed upon img
name of the function to be executed upon img