vis/classify_live.py
def draw_menu(img):
    """
    Draw the menu. So far this is only a text in the right corner about 'Q for quit'.
    :param img: image to be drawn on
    :return: 
    """
    width, height = geom.get_img_dims(img)

    font_scale = 0.0012 * height
    position = (int(0.8 * width), int(0.07 * height))
    font = cv2.FONT_HERSHEY_SIMPLEX
    thickness = int(2 * font_scale)
    line_type = cv2.LINE_AA
    text = "Press 'Q' to quit"
    color = (255, 255, 255)

    cv2.putText(img, text, position, font, font_scale, color, thickness, line_type)

    Draw the menu. So far this is only a text in the right corner about 'Q for quit'.
    :param img: image to be drawn on
    :return: 
    
Draw the menu. So far this is only a text in the right corner about 'Q for quit'.
Draw the menu . So far this is only a text in the right corner about ' Q for quit ' .
def draw_menu(img):
    width, height = geom.get_img_dims(img)
    font_scale = 0.0012 * height
    position = (int(0.8 * width), int(0.07 * height))
    font = cv2.FONT_HERSHEY_SIMPLEX
    thickness = int(2 * font_scale)
    line_type = cv2.LINE_AA
    text = "Press 'Q' to quit"
    color = (255, 255, 255)
    cv2.putText(img, text, position, font, font_scale, color, thickness, line_type)
def draw_menu ( img ) : width , height = geom . get_img_dims ( img ) font_scale = 0.0012 * height position = ( int ( 0.8 * width ) , int ( 0.07 * height ) ) font = cv2 . FONT_HERSHEY_SIMPLEX thickness = int ( 2 * font_scale ) line_type = cv2 . LINE_AA text = "Press 'Q' to quit" color = ( 255 , 255 , 255 ) cv2 . putText ( img , text , position , font , font_scale , color , thickness , line_type )
Draw the menu.
Draw the menu .
"""
    Draw the menu. So far this is only a text in the right corner about 'Q for quit'.
    :param img: image to be drawn on
    :return: 
    """
None
img
image to be drawn on
image to be drawn on