def handle_keys(raw_key:int):
    """Handles key presses by adjusting global thresholds etc.
    :param raw_key: is the return value from cv2.waitkey
    :return: False if program should end, or True if should continue
    """
    global show_fps, pause_flag

    ascii_code = raw_key & 0xFF
    if ((ascii_code == ord('q')) or (ascii_code == ord('Q'))):
        return False

    elif (ascii_code == ord('f')):
        show_fps = not (show_fps)
        print('New value for show_fps: ' + str(show_fps))

    elif (ascii_code == ord('p')):
        pause_flag = not pause_flag
        print('New value for pause_flag: ' + str(pause_flag))

    return True
Handles key presses by adjusting global thresholds etc.
    :param raw_key: is the return value from cv2.waitkey
    :return: False if program should end, or True if should continue
    
apps/classifier_flash/classifier_flash.py