sketchkit.ordering.LineDrawer package¶ Subpackages¶ sketchkit.ordering.LineDrawer.CNNVE package Submodules sketchkit.ordering.LineDrawer.CNNVE.CNNVE module CNNVE CNNVE.indir CNNVE._create_linear_curve() CNNVE._generate_ordered_sketch() CNNVE._point_to_vertex() CNNVE._points_to_path() CNNVE._vis_merge_result_paints_undo() CNNVE.run() sketchkit.ordering.LineDrawer.CNNVE.color_generator module ColorGenerator ColorGenerator._color_gene_hsluv() ColorGenerator._gene_css4_cmap() ColorGenerator.get_color_map() sketchkit.ordering.LineDrawer.CNNVE.frame_matcher module FrameMatcher FrameMatcher.match_strokes_to_frames() sketchkit.ordering.LineDrawer.CNNVE.video_processor module VideoProcessor VideoProcessor.imgs_to_mask() VideoProcessor.mp4_to_imgs() add_pil_border() get_match() is_increasing_relation() Module contents CNNVE CNNVE.indir CNNVE._create_linear_curve() CNNVE._generate_ordered_sketch() CNNVE._point_to_vertex() CNNVE._points_to_path() CNNVE._vis_merge_result_paints_undo() CNNVE.run() Module contents¶ class sketchkit.ordering.LineDrawer.LineDrawer(method='CNNVE', device='cpu')[source]¶ Bases: Orderer Wrapper class for LineDrawer animation, matching vectorization structure. _abc_impl = <_abc._abc_data object>¶ run(img: ndarray, ref_video_path: str) → Sketch[source]¶ Run LineDrawer animation. Parameters: img (numpy.ndarray) – PIL image array ref_video (str) – Path to reference video inner_frames (int) – Ignored by LineDrawer Returns: List of frames Return type: list