"""Task 3 Code
    1. Accepts Image ID, Model (LBP or HOG), value 'k'.
    2. Finds k most similar images to the given image ID.
    3. Displays matching score for each match in the list.
"""
import feature_descriptor as fd


def task3():
    query_img_id = input('\nImage ID: ')
    k = int(input('\nEnter the number of similar images you want to view: '))
    while True:
        feat_ch = input('\n\nChoose Model from the Menu\n1. LBP\n2. HOG\n3. Exit\nEnter Choice: ')
        if feat_ch == '1' or feat_ch == '2':
            fd.feature_descriptor.k_similar_imgs(query_img_id, feat_ch, k)
        elif feat_ch == '3':
            break
