All Projects → LingDong- → Linedraw

LingDong- / Linedraw

Licence: mit
Convert images to vectorized line drawings for plotters.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Linedraw

canvas-color-tracker
A utility to track objects on a canvas by unique px color
Stars: ✭ 29 (-92.62%)
Mutual labels:  drawing
Gromit Mpx
Gromit-MPX is an on-screen annotation tool that works with any Unix desktop environment under X11 as well as Wayland.
Stars: ✭ 287 (-26.97%)
Mutual labels:  drawing
Canvas
Canvas is a Go drawing library based on OpenGL or using software rendering that is very similar to the HTML5 canvas API
Stars: ✭ 358 (-8.91%)
Mutual labels:  drawing
pencil-scribbles
Create pencil effect drawings from pictures using R
Stars: ✭ 30 (-92.37%)
Mutual labels:  drawing
Ypdrawsignatureview
Capture signature view in Swift and export it as a vector graphics or bitmap
Stars: ✭ 279 (-29.01%)
Mutual labels:  drawing
Luxor.jl
Simple drawings using vector graphics; Cairo "for tourists!"
Stars: ✭ 293 (-25.45%)
Mutual labels:  drawing
desert
A fast (?) random sampling drawing library
Stars: ✭ 61 (-84.48%)
Mutual labels:  drawing
Excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
Stars: ✭ 25,509 (+6390.84%)
Mutual labels:  drawing
Go Chart
go chart is a basic charting library in go.
Stars: ✭ 3,254 (+727.99%)
Mutual labels:  drawing
Anyimagekit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 324 (-17.56%)
Mutual labels:  drawing
rnote
A simple drawing application to create handwritten notes.
Stars: ✭ 1,538 (+291.35%)
Mutual labels:  drawing
Colorslider
🎨 Snapchat-style color picker in Swift
Stars: ✭ 258 (-34.35%)
Mutual labels:  drawing
Drawkit
Vector and illustration framework for macOS
Stars: ✭ 299 (-23.92%)
Mutual labels:  drawing
AsyPad
A simple drawing tool that can convert diagrams into Asymptote code.
Stars: ✭ 18 (-95.42%)
Mutual labels:  drawing
Csharp Data Visualization
Code examples and notes for displaying data with C#
Stars: ✭ 355 (-9.67%)
Mutual labels:  drawing
FuncMorph
Crazy figures and animations with Haskell
Stars: ✭ 30 (-92.37%)
Mutual labels:  drawing
Tart
Tart - draw ASCII art in the terminal with your mouse!
Stars: ✭ 296 (-24.68%)
Mutual labels:  drawing
Drawing
A drawing application for the GNOME desktop.
Stars: ✭ 386 (-1.78%)
Mutual labels:  drawing
Openvg
Tools for exploring OpenVG
Stars: ✭ 371 (-5.6%)
Mutual labels:  drawing
Ferris Wheel
Simple android library to present an animated ferris wheel
Stars: ✭ 308 (-21.63%)
Mutual labels:  drawing

linedraw

Convert images to vectorized line drawings for plotters. Alt text

  • Exports polyline-only svg file with optimized stroke order for plotters;
  • Sketchy style powered by Perlin noise;
  • Contour-only or hatch-only modes.

Dependencies

Python 2 or 3, PIL/Pillow, numpy, OpenCV (Optional for better performance)

Usage

Convert an image to line drawing and export .SVG format:

$ python linedraw.py -i input.jpg -o output.svg

Command specs:

usage: linedraw.py [-h] [-i [INPUT_PATH]] [-o [OUTPUT_PATH]] [-b] [-nc] [-nh]
                   [--no_cv] [--hatch_size [HATCH_SIZE]]
                   [--contour_simplify [CONTOUR_SIMPLIFY]]

Convert image to vectorized line drawing for plotters.

optional arguments:
  -h, --help            show this help message and exit
  -i [INPUT_PATH], --input [INPUT_PATH]
                        Input path
  -o [OUTPUT_PATH], --output [OUTPUT_PATH]
                        Output path.
  -b, --show_bitmap     Display bitmap preview.
  -nc, --no_contour     Don't draw contours.
  -nh, --no_hatch       Disable hatching.
  --no_cv               Don't use openCV.
  --hatch_size [HATCH_SIZE]
                        Patch size of hatches. eg. 8, 16, 32
  --contour_simplify [CONTOUR_SIMPLIFY]
                        Level of contour simplification. eg. 1, 2, 3

Python:

import linedraw
lines = linedraw.sketch("path/to/img.jpg")  # return list of polylines, eg.
                                            # [[(x,y),(x,y),(x,y)],[(x,y),(x,y),...],...]
                                            
linedraw.visualize(lines)                   # simulates plotter behavior
                                            # draw the lines in order using turtle graphics.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].