Kivy-powered GUI for taking sediment images with site and sample annotations and processing them for grain size
Written by Daniel Buscombe, October 2013 while at Grand Canyon Monitoring and Research Center, U.G. Geological Survey, Flagstaff, AZ
Please contact: [email protected]
to report bugs and discuss the code, algorithm, collaborations
For the latest code version please visit: https://github.com/dbuscombe-usgs
There are 2 versions:
- sc_basic.py
which is a program to:
-
view and capture an image of sediment
-
get site and sample info from the user
-
save image to file with the site and sample in the file name
-
crop and make greyscale and save another file
-
sc_get_gs.py
which is a program to:
- view and capture an image of sediment
- get site and sample info from the user
- save image to file with the site and sample in the file name
- crop and make greyscale and save another file
- calculate grain size distribution and save results to text file
- write summary statistics of the distribution to text file
Requirements for running the basic version:
- python
- kivy (http://kivy.org/#home)
- python imaging library (https://pypi.python.org/pypi/PIL)
Requirements for running the grain size processing version which uses parallel processing for speed:
- python
- kivy (http://kivy.org/#home)
- python imaging library (https://pypi.python.org/pypi/PIL)
- scipy (https://pypi.python.org/pypi/scipy)
- numpy (https://pypi.python.org/pypi/numpy)
- joblib (https://pypi.python.org/pypi/joblib)