Skip to content

Instantly share code, notes, and snippets.

View drfloob's full-sized avatar

AJ Heller drfloob

  • Google
  • Santa Cruz, CA
View GitHub Profile
@drfloob
drfloob / flag.svg
Last active December 19, 2015 10:09 — forked from azundo/flag.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2

Results