Mate's Blog

Pages

  • Home

Sunday, 11 May 2014

Handwriting to SVG: potrace and image magick

#!/bin/bash
set -eux

INPUT="$1"
OUTPUT="$2"

WORKDIR="$(mktemp -d)"
convert \
    -format bmp -colorspace gray -normalize \
    -threshold 90% "$INPUT" "$WORKDIR/bitmap.bmp"

potrace -b svg -r 300 -t 5 -o "$OUTPUT" "$WORKDIR/bitmap.bmp"
Posted by Mate Lakat at 06:10
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: convert, handwriting, imagemagick, scan, svg

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2018 (1)
    • ►  September (1)
  • ►  2017 (13)
    • ►  December (2)
    • ►  September (1)
    • ►  August (2)
    • ►  May (3)
    • ►  April (3)
    • ►  March (1)
    • ►  February (1)
  • ►  2015 (2)
    • ►  July (2)
  • ▼  2014 (16)
    • ►  November (2)
    • ►  August (1)
    • ►  June (2)
    • ▼  May (5)
      • Debootstrap as a single user
      • Ubuntu installer - Unmount partitions that are in ...
      • Sherlocking Mock based builds
      • Handwriting to SVG: potrace and image magick
      • Machine Callback Design
    • ►  March (4)
    • ►  February (2)
  • ►  2013 (13)
    • ►  August (2)
    • ►  June (2)
    • ►  May (1)
    • ►  April (3)
    • ►  March (5)
  • ►  2012 (32)
    • ►  December (3)
    • ►  November (7)
    • ►  September (1)
    • ►  August (2)
    • ►  June (6)
    • ►  April (6)
    • ►  March (7)

About Me

My photo
Mate Lakat
View my complete profile
Theme images by andynwt. Powered by Blogger.