Computer vision toolkit for high-throughput fruit phenotyping.
Project description
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
Usage
Traitly can be used from Python, the command line (CLI), or as a web application (Shiny App). For more details:
- Input image specifications
- Traitly architecture
- Python quickstart
- CLI and Shiny App
- Results overview
- Try our interactive demo onlineˎˊ˗
Publications & Presentations
Posters related to Traitly can be found in this folder:
- Posters ★ˎˊ˗
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 |
|---|---|
| 💻 📆 🚧 📓 ✅ 🐛 📖 ⚠️ 🤔 🌍 | |
| 📖 📓 ✅ 🤔 🐛 🔣 🌍 | |
| Juan Zalapa | 🔣 |
| 🐛 |
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traitly-0.1.2.tar.gz.
File metadata
- Download URL: traitly-0.1.2.tar.gz
- Upload date:
- Size: 13.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd6694363c62dc241616eb00deae976acc9f9adc8f0a57ce8277a33bfcf20531
|
|
| MD5 |
2907c03b381f95516f3dfdf24937ba3f
|
|
| BLAKE2b-256 |
4ebf03311f3e7d0d3923ca9369d9c55fd92f595b15775f9d9e44d079b784153b
|
File details
Details for the file traitly-0.1.2-py3-none-any.whl.
File metadata
- Download URL: traitly-0.1.2-py3-none-any.whl
- Upload date:
- Size: 12.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f893a6061f307db75a54ddc0d5e372310790bcd06141c88b02580187e1a62407
|
|
| MD5 |
93a8872f210bfe3b80c05c5d6b1ab79a
|
|
| BLAKE2b-256 |
dfbe2c3e63aa532db0278681df53c71aebf688c5a473aa4f48d079ee0d18abc7
|