{'fraction_non_alphanumeric': 0.01918158567774936, 'fraction_numerical': 0.0, 'mean_word_length': 4.887218045112782, '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}}
sketcher: An R package for converting a photo into a sketch style image

Line drawings have been useful stimuli for visual perception, cognition, and related fields, because edges play an important role in the visual system. Although there are many datasets of line drawing stimuli available for research, we often need a new set of stimuli for specific research purposes. Here I provide an R implementation of image processing effects where a photo is converted to a line drawing image. Drawing style, such as lineweight, texture smoothness, and the inclusion of shading can be controlled by adjusting the parameters of this algorithm. With this tool, line drawing stimuli can easily be created with just a few lines of script, and will be useful for various research applications.