Metadata-Version: 2.4
Name: pyPetrograph
Version: 0.4.1
Summary: A toolkit for semi-automated, ML-assisted thin-section petrography: porosity estimation, mineral counting, grain segmentation and micro-texture analysis
Author: Larry Syu-Heng Lai
License-Expression: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/GeoLarryLai/pyPetrograph
Project-URL: Repository, https://github.com/GeoLarryLai/pyPetrograph
Project-URL: Changelog, https://github.com/GeoLarryLai/pyPetrograph/blob/main/CHANGELOG.md
Keywords: petrography,thin-section,mineralogy,segmentation,porosity
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Environment :: Web Environment
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: numpy>=1.24
Requires-Dist: pillow>=10
Requires-Dist: matplotlib>=3.7
Requires-Dist: scikit-learn>=1.3
Requires-Dist: scipy>=1.10
Requires-Dist: geopandas>=0.14
Requires-Dist: shapely>=2
Requires-Dist: rasterio>=1.3
Requires-Dist: affine>=2.4
Requires-Dist: joblib>=1.3
Requires-Dist: pandas>=2
Requires-Dist: lightgbm>=4
Requires-Dist: scikit-image>=0.22
Requires-Dist: rapidocr<4,>=3
Requires-Dist: onnxruntime
Requires-Dist: fastapi>=0.110
Requires-Dist: uvicorn>=0.27
Dynamic: license-file

# pyPetrograph

v0.4.1

pyPetrograph is a Python toolkit for semi-automated, machine-learning-assisted thin-section petrography. It supports pixel classification and area proportions, mineral counting, grain segmentation, and micro-texture analysis, including an AMICS workflow using BSE images, mineral maps, and legends.

A local browser app guides thin-section photo analysis and AMICS grain counting, with review and correction before export. Example notebooks, figures, installation details, and demonstrations are available in the [GitHub repository](https://github.com/GeoLarryLai/pyPetrograph).

**Caution:** The package is under active development. Some methods are experimental or incomplete and require independent checking.

Citation: Lai, L. S.-H. (2026). pyPetrograph. [Zenodo](https://doi.org/10.5281/zenodo.23659316).

License: AGPL-3.0-or-later. Third-party credits are recorded in NOTICE.
