Skip to content

Instantly share code, notes, and snippets.

View renarios's full-sized avatar

Rene Zijlstra renarios

View GitHub Profile
#!/usr/bin/env python
'''Crop an image to just the portions containing text.
Usage:
./crop_morphology.py path/to/image.jpg
This will place the cropped image in path/to/image.crop.png.
For details on the methodology, see