def match_one(template, image, options=None):
    """
    Match template and find exactly one match in the Image using specified features.

    :param template: Template Image
    :param image: Search Image
    :param options: Options include
        - features: List of options for each feature
    :return: (Box, Score) Bounding box of the matched object, Heatmap value
    """
    heatmap, scale = multi_feat_match(template, image, options)

    min_val, _, min_loc, _ = cv.minMaxLoc(heatmap)
    top_left = tuple(scale * x for x in min_loc)
    score = min_val

    h, w = template.shape[:2]
    return Box(top_left[0], top_left[1], w, h), score
def match_one ( template , image , options = None ) : heatmap , scale = multi_feat_match ( template , image , options ) min_val , _ , min_loc , _ = cv . minMaxLoc ( heatmap ) top_left = tuple ( scale * x for x in min_loc ) score = min_val h , w = template . shape [ : 2 ] return Box ( top_left [ 0 ] , top_left [ 1 ] , w , h ) , score
Match template and find exactly one match in the Image using specified features.

    :param template: Template Image
    :param image: Search Image
    :param options: Options include
        - features: List of options for each feature
    :return: (Box, Score) Bounding box of the matched object, Heatmap value