Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save githubutilities/382ec1a3ffabc071eabc to your computer and use it in GitHub Desktop.

Select an option

Save githubutilities/382ec1a3ffabc071eabc to your computer and use it in GitHub Desktop.
Infomation-Image Processing in Command Line

QR Code in Command Line

# encode
brew install qrencode
qrencode --margin=1 --size 100 --type=png --output=qrcode.png https://www.google.com

# decode
brew install zbar
zbarimg qrcode.png

Reference

Data Matrix in Command Line

brew install dmtx-utils
# encode
echo "hello world" | dmtxwrite -o data_matrix.png

# decode
dmtxread data_matrix.png

Seam carving

Accoring to wikipedia, seam carving is an algorithm for image resizing.

brew search liblqr

# install wx module through brew, visit [here](http://superuser.com/questions/196197/installing-wxpython-via-pip-or-easy-install) for more info
brew install wxpython

Reference

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment