{'fraction_non_alphanumeric': 0.010526315789473684, 'fraction_numerical': 0.0, 'mean_word_length': 5.201086956521739, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Template matching based on deformation diversity similarity and scale filtering

To solve the problem that deformation diversity similarity (DDIS) has poor matching effects on rotation and multi-scale objects, a more robust template matching algorithm is proposed to deal with such conditions. The location distance of the nearest neighbor pairs is calculated by strengthening the constraint of the apparent features of the object on the location distance in polar coordinate system. The new confidence map composed of the DDIS response values is obtained and take the position with the highest values as the object center. The scale image pyramid is built according to the template to train the scale filter, and the scale filter is carried out on target image to determine the object scale. Experimental results show that the template matching effect of the proposed algorithm is better than DDIS, the new calculation method of location distance can effectively improve the robustness for rotating object and the scale filter can achieve the adaptive scale of object. Combining those two factors can further improve the matching accuracy.