{'fraction_non_alphanumeric': 0.01812688821752266, 'fraction_numerical': 0.0, 'mean_word_length': 5.5594059405940595, '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}}
Chroma-Keying Based on Global Weighted Sampling and Laplacian Propagation

Chroma-keying is an important technique for image/video background replacement, which is heavily used in film production, video game industry and news casting. In chroma-keying system, the foreground objects are shot in front of solid color background. In conventional chroma-keying systems, difference and clustering based algorithms are mainly used to separate foreground from background. However, regions cannot be reliably segmented if transparency or blurring exists, and if foreground and background region are not completely separable in color space. This paper proposes a new method to automatically remove the background color and to accurately extract the foreground objects along with their transparency properties, especially for tiny objects and large transparent area. First, a threshold based method in both HSV color space and spatial gradient space is used to roughly segment the foreground/background regions. The background color is then propagated from known background region to unknown region. Finally, the foreground color and the transparency factor are estimated based on weighted global sampling. The experimental results show that the foreground objects can be accurately extracted even if large transparent regions exist.