Skip to main content

Disponible en: Spanish

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.


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

Traitly also provides:

  • Color correction: Correct image color using a reference color card
  • PDF extraction: Extract images from a PDF file

Usage

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


Publications & Presentations

Posters related to Traitly can be found in this folder:

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


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


Contact

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

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


Contributions

Inspired by All Contributors, we recognize all kinds of contributions, not just code:

Contributor Role
 María Meraz 💻 🚧 📓 ✅ 🐛 📖 ⚠️ 💬 👀 🌍
 Héctor López 📖 📓 ✅ 🤔 🐛 🔣 🌍
Juan Zalapa 🔣
 Álvaro Guerrero 🐛

Acknowledgements ♡

We thank the developers of OpenCV, Ultralytics, EasyOCR, NumPy, Pandas, Matplotlib, and Shiny, as well as all open-source libraries that made this project possible.

Metadata

Release files for traitly 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for traitly 0.3.0
File Size Uploaded Provenance Actions
traitly-0.3.0.tar.gz 12.4 MB Without provenance Details for traitly-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for traitly 0.3.0
File Interpreter ABI Platform Actions
traitly-0.3.0-py3-none-any.whl Python 3 none any Details for traitly-0.3.0-py3-none-any.whl

Total release size: 23.9 MB

Release files / traitly-0.3.0.tar.gz

Download URL traitly-0.3.0.tar.gz
Size 12.4 MB
Tags Source
SHA-256 checksum
How to use checksums
be8d1f0b0a585334b3ec5eac828c3ad49f7d1c42a648e25b4a9727bf0c70a8fe
BLAKE2b-256 checksum
How to use checksums
818ebab6dd0cbc6a021f96fef1df6e78224dd06894abd867eaba15b4e1b37a97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / traitly-0.3.0-py3-none-any.whl

Download URL traitly-0.3.0-py3-none-any.whl
Size 11.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a9667a8f2009f845f0c6882b627344860de1ff95da68910f4a1be003b674535c
BLAKE2b-256 checksum
How to use checksums
ef8d397fb94249d84568ef971728b58a095a978737b7909e306d488c2b00d0c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for traitly 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page