Skip to content

Instantly share code, notes, and snippets.

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

@davidohalloran
davidohalloran / countries.json
Created October 10, 2013 16:22
Countries List
{"value":"United States", "text": "United States"},
{"value":"Ireland", "text": "Ireland"},
{"value":"United Kingdom", "text": "United Kingdom"},
{"value":"Afghanistan", "text": "Afghanistan"},
{"value":"Albania", "text": "Albania"},
{"value":"Algeria", "text": "Algeria"},
{"value":"American Samoa", "text": "American Samoa"},
{"value":"Andorra", "text": "Andorra"},
{"value":"Angola", "text": "Angola"},
{"value":"Anguilla", "text": "Anguilla"},