Sid: image processing for seed images

PyPi Supported Python versions License Build Status Docs Zenodo FigShare

Author: Yoav Ram

Source code: GitHub

Dataset: FigShare

Sid is an open-source Python package for image processing of plant seed images, specifically Lamium amplexicaule.


  • Python
  • PIL/Pillow
  • numpy
  • scipy
  • scikit-image
  • matplotlib
  • watchdog
  • click
  • pywin32 (on Windows)

For testing and documentation:

  • nose
  • coverage
  • sphinx


  1. Install the Anaconda Python distribution.
  2. Update all Python packages using conda:
>>> conda update --all --yes
  1. Install Sid using pip:
>>> pip install Sid
  1. Check that Sid was installed properly by running the take_cover script:
>>> take_cover --version
Sid, version x.x.x

where x.x.x will be replaced by the current version (0.2.4+7.g9d5396b).


When installing on Windows, if you get an error trying to install pywin32 or pypiwin32, try to run:

>>> conda install pywin32 --yes


To upgrade to the newest version of Sid (0.2.4+7.g9d5396b):

>>> conda update --all --yes
>>> pip install --upgrade Sid
>>> take_cover --version
Sid, version x.x.x


Use by running:

>>> take_cover

The script will first ask for a folder name - this will be the working directory from which the script will read .jpg files and to which it will write .png and .csv files.

The script will then ask if the folder should be processed Continuously or once.

For more options, see the help message:

>>> take_cover --help

Continuous processing

In this case the script will wait for new .jpg files in the folder. When a new .jpg file is created, the script will process it, creating .png files with the color spaces and the segmentation checkpoints, open the segmentation image, and will print the final stats to the screen.

Single processing

In this case the script will go over all .jpg files in the folder and process them. It will produce .png files with the color spaces and the segmentation checkpoints and two .csv files: one with the final stats for each .jpg file and one with the histograms that were used to find the features on the seed (background, eliosom, cover).

Configuration file

take_cover.json is the configuration file which includes values of different parameters of the algorithm, including segmentation thresholds.


Please contact Yoav Ram with questions and comments.

Bugs and feature requests can be opened on GitHub Issues


Developers should clone the repository from GitHub and install it in editable mode:

>>> git clone
>>> cd Sid
>>> pip install -e .
  • Source code is hosted by GitHub
  • Testing is done with nosetests Sid/tests
  • Continuous integration and deployment is performed by Travis-CI
  • Code coverage is tracked by
  • Package is hosted on PyPi
  • Documentation is hosted by Read The Docs
  • Documentation is built with Sphinx


Sid source code and examples are licensed under the terms of the MIT license.

Sid documentation, examples, and other materials are licensed under the terms of the Creative Commons Attribution 4.0 International (CC BY 4.0) license