{'fraction_non_alphanumeric': 0.01951219512195122, 'fraction_numerical': 0.00878048780487805, 'mean_word_length': 5.218181818181818, '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}}
Apparatus and method for auto white balancing in portable terminal

An AWB(Auto White Balance) photographing method of a portable terminal is provided to divide RGB(Red, Green and Blue) channels into a plurality of levels and carry out white balance/correction by using a color distribution median which is an average value of the levels except for some levels in which the number of pixels is larger than a predetermined reference number. A photographed image is analyzed by histograms of RGB channels and a histogram of a G(Gray) channel(506). It is checked whether the histograms of the RGB channels are overlapped with the histogram of the G channel by predetermined percentage or by higher percentage than the predetermined percentage. A color distribution median of each RGB channel is measured if the histograms thereof are overlapped with the histogram thereof by the predetermined percentage or the higher percentage(510). White balance/correction is carried out by using the measured color distribution median(512).