Metadata-Version: 2.4
Name: traitly
Version: 0.1.2
Summary: Computer vision toolkit for high-throughput fruit phenotyping.
Project-URL: Repository, https://github.com/mariameraz/traitly
Project-URL: Documentation, https://traitly.readthedocs.io/en/latest/
Project-URL: Issues, https://github.com/mariameraz/traitly/issues
Project-URL: Changelog, https://github.com/mariameraz/traitly/blob/main/CHANGELOG.md
Project-URL: Demo, https://huggingface.co/spaces/mariameraz/traitly
Author-email: Maria Alejandra Torres Meraz <ma.torresmeraz@gmail.com>, Hector Lopez Moreno <hectorlpzmno@gmail.com>
License: AGPL-3.0-or-later
License-File: LICENSE
Keywords: fruit-morphology,plant-breeding,plant-phenotyping
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Image Processing
Requires-Python: >=3.9
Requires-Dist: easyocr
Requires-Dist: ipython
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: opencv-contrib-python
Requires-Dist: pandas
Requires-Dist: psutil
Requires-Dist: rich-argparse
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: ultralytics
Provides-Extra: app
Requires-Dist: pymupdf; extra == 'app'
Requires-Dist: shiny; extra == 'app'
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Provides-Extra: pdf
Requires-Dist: pymupdf; extra == 'pdf'
Description-Content-Type: text/markdown

<div align="center">
<h1>Traitly</h1>


[![Python 3.9+](https://github.com/mariameraz/traitly/actions/workflows/python_compatibility.yml/badge.svg)](https://github.com/mariameraz/traitly/actions/workflows/python_compatibility.yml)
[![Testing](https://github.com/mariameraz/traitly/actions/workflows/pytest.yml/badge.svg?branch=main)](https://github.com/mariameraz/traitly/actions/workflows/pytest.yml)
[![codecov](https://codecov.io/gh/mariameraz/traitly/graph/badge.svg?token=ZDT6RBAGZJ)](https://codecov.io/gh/mariameraz/traitly)
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-green?logo=gnu&logoColor=white)](https://github.com/mariameraz/traitly/blob/main/LICENSE)


<a href="https://traitly.readthedocs.io/en/latest/">Documentation</a> ⋆
<a href="https://traitly.readthedocs.io/en/latest/installation/">Installation</a> ⋆
<a href="https://traitly.readthedocs.io/en/latest/user_guide/overview/">User Guide</a> ⋆
<a href="https://traitly.readthedocs.io/en/latest/tutorials/overview/">Tutorials</a>

</div>

<br>

Página disponible en: [![Spanish](https://img.shields.io/badge/Idioma-Espa%C3%B1ol-pink)](https://github.com/mariameraz/traitly/blob/main/README_ES.md)


**Traitly** is an open-source Python tool for automated, high-throughput fruit phenotyping from digital images. Using computer vision methods, it quantifies morphological, symmetry, and color traits across both internal structures and the external appearance of the fruit.

It supports both single-image analysis and batch processing workflows, making it easy to handle large image datasets with just a few lines of code, which is especially useful in plant breeding programs and research.

</br>

### What can Traitly do?

Traitly processes fruit images to measure:

* **Fruit morphology**: Area, perimeter, circularity, dimensions, and aspect ratio
* **Locule anatomy**: Locule number, size distribution, and spatial arrangement
* **Pericarp structure**: Thickness, uniformity (CV), and surface irregularity (lobedness)
* **Color phenotypes**: Multi-channel analysis (RGB, HSV, Lab) across different fruit regions

</br>

## Usage

Traitly can be used from Python, the command line (CLI), or as a web application (Shiny App). For more details:

- [Input image specifications](https://traitly.readthedocs.io/en/latest/user_guide/int_image_requirements/)
- [Traitly architecture](https://traitly.readthedocs.io/en/latest/user_guide/overview/)
- [Python quickstart](https://traitly.readthedocs.io/en/latest/tutorials/quickstart/)
- [CLI and Shiny App](https://traitly.readthedocs.io/en/latest/user_guide/cli/)
- [Results overview](https://traitly.readthedocs.io/en/latest/user_guide/results/overview/)
- Try our [interactive demo](https://huggingface.co/spaces/mariameraz/traitly) onlineˎˊ˗

</br>

## Publications & Presentations

Posters related to Traitly can be found in this folder:

- [Posters](https://drive.google.com/drive/folders/1AvlHWKcDvoE9m9QcmCJ5o-ma9W-LNQMe?usp=share_link) ★ˎˊ˗

These materials provide additional methodological details and results from research derived from our package.

</br>

## Citation

We are working on a manuscript describing this software and its applications, expected to be submitted in **Spring–Summer 2026**. In the meantime, if you use Traitly in your research, please cite it as:

> Torres-Meraz, M. A., Lopez-Moreno, H., & Zalapa, J. (2026). Traitly: A Python Toolkit for High-Throughput Fruit Phenotyping. Zenodo. https://doi.org/10.5281/zenodo.18738366

</br>


## Contact

For questions or comments about the project, feel free to reach out to:

* [ma.meraz@proton.me](mailto:ma.meraz@proton.me)
* [torresmeraz@wisc.edu](mailto:torresmeraz@wisc.edu)

We are open to collaborations, including adding new traits, and creating tutorials or workflows for specific crops or plant tissues.

<br>
    
## Contributions

Inspired by [All Contributors](https://allcontributors.org/), we recognize all kinds of contributions, not just code:

<!-- CONTRIBUTORS-START -->
| Contributor | Role |
|-------------|------|
| [<img src="https://github.com/mariameraz.png" width="44" height="44" valign="middle">&nbsp;María Meraz](https://github.com/mariameraz) | 💻 📆 🚧 📓 ✅ 🐛 📖 ⚠️ 🤔 🌍 |
| [<img src="https://github.com/hector-LM.png" width="44" height="44" valign="middle">&nbsp;Héctor López](https://github.com/hector-LM) | 📖 📓 ✅ 🤔 🐛 🔣 🌍 |
| Juan Zalapa | 🔣 |
| [<img src="https://github.com/AlvaroGuerrero.png" width="44" height="44" valign="middle">&nbsp;Álvaro Guerrero](https://github.com/AlvaroGuerrero) | 🐛 |
<!-- CONTRIBUTORS-END -->

<br> 
    
## Acknowledgements ♡

We thank the developers of [OpenCV](https://opencv.org/), [Ultralytics](https://github.com/ultralytics/ultralytics), [EasyOCR](https://github.com/JaidedAI/EasyOCR), [NumPy](https://numpy.org/), [Pandas](https://pandas.pydata.org/), [Matplotlib](https://matplotlib.org/), and [Shiny](https://shiny.posit.co/py/), as well as all  open-source libraries that made this project possible.
