Next, as shown in block 406, the process flow includes comparing, using the sliding window matching algorithm, the one or more features associated with the image of the query with the one or more features associated with the one or more high resolution images associated with the one or more documents. In some embodiments, the system may be configured to compare the one or more features associated with the image of the query with at least the portion of the one or more features associated with the one or more high resolution images identified within the window at each of the one or more predetermined incremental steps. By comparing the features extracted from the high resolution images with the features extracted from the image of the query, the system may be configured to eliminate any outliers affecting the matching step. For example, assume that the objective is to identify any incidences of the query, “0000XXXX” in a document. The features extracted from “0000XXXX” may include a number of ordered points that define the contours of the image, such as the curves in “0” and the crossing in “X.” However, these individual features could be found in other positions in the document individually or in some combination dissimilar to that of the combination in the query causing outlier matches. By implementing a sliding window comparison, these outlier matches can be eliminated.