{'fraction_non_alphanumeric': 0.013143483023001095, 'fraction_numerical': 0.0, 'mean_word_length': 5.260273972602739, '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}}
Design of Paper Counting Algorithm based on Texture Image

For the stacked paper placed parallel to each other, the characteristics of the side texture image are analyzed, and an algorithm for counting compensation combined with the overall information is proposed. Considering that the most algorithms only deal with one-dimensional information, it is easy to generate the blind area of counting, resulting in false detection and missing detection. On this basis, this paper counts the edges of the paper in combination with the overall image information. This method detects the binarized side image of the paper at the suspected position by using a rectangular template to eliminate the false detection position and recover the missed detection position. The experimental results show that the accuracy of the algorithm is significantly improved, and the counting error is controlled within the required range.