-
Notifications
You must be signed in to change notification settings - Fork 186
GRABSEEDS
Phenotyping plant organs (seeds, flowers, leaves, fruits, nuts) is important in Quantitative Trait Loci (QTL) mapping and whole genome association studies. Computerized phenotyping of digital images promises rapid, robust and reproducible typing of length and color traits. We highlight several features of GRABSEEDS.
- Work on seeds, leaves and flowers from a set of organisms
- Easy to use, command line interface, runs fast
- Robust against lighting condition, noisy background and overlapping seeds
- Label recognition towards full automation of seed phenotyping projects
Please check out our installation guide.
Please note: the following image examples can be downloaded here.
To process single image, for example, test.JPG
, run this command:
python -m jcvi.graphics.grabseeds seeds test.JPG
This command generates a PDF file for debugging purposes while all the identified objects will be written to stdout. The PDF output contains object information layered onto original image. The four panels contain Original picture, Edge detection, Object detection, Object list, respectively. These panels are useful in finding the best parameter for object detection.
In the following example, the image contains a package that interfere with the seed recognition.
The solution is to extract certain rows (or columns) from original image, for example --rows=:800
will extract the first 800 rows. Please use the coordinates on the axes of the image as a guide.
python -m jcvi.graphics.grabseeds seeds label.JPG --rows=:800
To fully automate phenotyping pipeline, placing a text label next to the seeds is a good idea. The packaging in the previous example contains text. Similarly to cropping the image area, --labelrows=1200:
tells the program to run OCR starting on row 1200. Consequently the following command extracts the label as 2013 Sh Backcross 401O2B.
python -m jcvi.graphics.grabseeds seeds label.JPG --rows=:800 --labelrows=1200:
Please see more examples at GRABSEEDS: How to tune accuracy.
© Haibao Tang, 2010-2024