Skip to content

Instantly share code, notes, and snippets.

View imkarthikk's full-sized avatar
:bowtie:
Focusing

Karthik Kamalakannan imkarthikk

:bowtie:
Focusing
View GitHub Profile
#!/bin/bash
# Bash Script to Install FFMPEG in Ubuntu 14.04
# Ref: http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
# Optional: install exiftool: apt-get install libimage-exiftool-perl
#
# Author: Edi Septriyanto http://masedi.net <hi@masedi.net>
# Enhanced: Karthik K http://skcript.com <karthik@skcript.com>
########################################################################
CURDIR=$(pwd)

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