import { Image, MatchRequest, MatchResult, Region } from "@nut-tree-fork/shared"; /** * An ImageFinder should provide an abstraction layer to perform image matching * * @interface ImageFinderInterface */ export interface ImageFinderInterface { /** * findMatch should provide an abstraction to search for an image needle * in another image haystack * * @param {MatchRequest} matchRequest A {@link MatchRequest} containing needed matching data * @returns {Promise} A {@link MatchResult} holding the match probability and location * @memberof ImageFinderInterface */ findMatch(matchRequest: MatchRequest): Promise>; /** * findMatches should provide an abstraction to search for an image needle * in another image haystack * * @param {MatchRequest} matchRequest A match request containing needed matching data * @returns {Promise} A list of {@link MatchResult}s holding the match probability and location * @memberof ImageFinderInterface */ findMatches(matchRequest: MatchRequest): Promise[]>; }