{'fraction_non_alphanumeric': 0.01834061135371179, 'fraction_numerical': 0.0, 'mean_word_length': 5.031578947368421, '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}}
Text location in color images suitable for smartphone

A text location algorithm in color images which is suitable to run on entry-level smartphones is proposed to overcome the weaker computing power on smartphones than on computers. In our proposed algorithm, first, morphological approaches are used to do with the edge image and so single text character or text string will form a connected component (CC), namely, the candidate text region. Then, non-text regions are excluded from the candidate text regions by using improved heuristic constraints based on the Gaussian image pyramid and mergence of adjacent connected components which is firstly proposed in this paper. Experiment demonstrates that in terms of the speed, this algorithm runs fast on an entry-level smartphone by only using edge information and in terms of the performance, this algorithm can be used to locate horizontal text lines in different font size, language, and color and it's easy to adapt it to locate vertical text lines. The algorithm effectively solves the problem of high false alarm probability in edge-based methods and gets high precision and recall rate.