{'fraction_non_alphanumeric': 0.014177693761814745, 'fraction_numerical': 0.0, 'mean_word_length': 5.537037037037037, '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}}
Automatic image vectorization using superpixels and random walkers

Image vectorization involves two major problems: how to extract proper geometric descriptors from the raster image and how to rasterize the vector representation for display. In this paper, we propose a novel image vectorization approach using diffusion curves as the geometric primitives. Our approach automatically extracts accurate diffusion curves from the input image without user interaction. We first segment the input image into a set of superpixels by a multi-layer algorithm. Then, boundary positions of these superpixels are explored to locate control points for diffusion curves, and color information is properly sampled to generate our double-boundary representation. To render the vector graphics, we formulate color diffusion as a random walk process. Experiments on different categories of photographs show that our approach successfully reveals detail contents in the reconstructed image, and that the rendering process can be performed nearly in realtime on a modern CPU.