def find_knn(test, knn, k):
    """make a prediction using the knn.

    :param test: input value
    :type test: numpy array
    :param knn: model
    :type knn: cv2 KNearest
    :param k: k value
    :type k: int
    :return: result
    :rtype: int
    """
    ret, results, neighbours, dist = knn.findNearest(test, k)
    return results