{'fraction_non_alphanumeric': 0.01904761904761905, 'fraction_numerical': 0.0, 'mean_word_length': 4.838888888888889, '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}}
Application of rough sets to image pre-processing for Face detection

Both of face detection and Face recognition play important role in the technology of biologic character identify. During processing of face image, it is indispensable to pre-processing. In this paper, a Pre-processing method for face color image based on rough sets theory is put forward. In this method, the image is divided as foreground and background by condition attribution. In order to extract the skin color regions, foreground is segmented by two kinds of the skin color model, YCrCb and HSV color spaces. Then, the opening and closing morphological operation are used to remove the small regions. Experiment shows the new algorithm has been tested by the computer simulation, in terms of accuracy extracting the skin color, positive rate of face detection and error rate etc. The results show that it can improve accuracy of extracting the skin color and shorten operation time validly. The result of enhanced image is better and satisfies requirement of face detection.