skip to navigation
skip to content

PIMS 0.2

Python Image Sequence: Load video and sequential images in many formats with a simple, consistent interface.

Latest Version: 0.3.3

pims: Python Image Sequence

[![build status](](

What Problem Does PIMS Solve?

Scientific video can be packaged in various ways: familiar video formats like .AVI and .MOV, folders full of numbered images, or "stacks" of TIFF images. Each of these requires a separate Python module. And, once loaded, they have different methods for **accessing individual images, looping through the images in bulk, or access a specific range**. PIMS can do all of these using a consistent interface, handling the differences between different inputs invisibly.

Examples & Documentation

Everything is demonstrated in [this IPython notebook](


One of the following is required:

* [scikit-image]
* [matplotlib]
* [scipy]

Depending on what file formats you want to read, you will also need:

* [ffmpeg]( (video formats such as AVI, MOV)
* [Pillow]( (improved TIFF support)
* [libtiff]( (alternative TIFF support)
* Tifffile, which is included in PIMS

Basic Installation

Installation is simple on Windows, OSX, and Linux, even for Python novices.

To get started with Python on any platform, download and install
[Anaconda]( It comes with the
common scientific Python packages built in.

If you are using Windows, I recommend 32-bit Anaconda even if your system is 64-bit.
(One of the optional dependencies is not yet compatible with 64-bit Python.)

Open a command prompt. That's "Terminal" on a Mac, and
"Start > Applications > Command Prompt" on Windows. Type these

pip install

In the command prompt, type

ipython notebook

Optional Dependencies

### Reading Multi-Frame TIFF Stacks

You will need libtiff, which you can obtain by running the following command
in a command prompt:

pip install -e svn+

### Reading Video Files (AVI, MOV, etc.)

To load video files directly, you need FFmpeg. You can work around this
requirement by converting any video files to folders full of images
using a utility like [ImageJ]( Reading folders
of images is supported out of the box, without OpenCV.

### Updating Your Instllation

The code is under active development. To update to the current development
version, run this in the command prompt:

pip install --upgrade

* Daniel B. Allan
* Thomas A. Caswell (major refacotring, additional formats)

Supporting Grant
This package was originally developed and maintained by Daniel Allan, as part
of his
PhD thesis work on microrheology in Robert L. Leheny's group at Johns Hopkins
University in Baltimore, MD. The work was supported by the National Science Foundation under grant number CBET-1033985.

Dan can be reached at
File Type Py Version Uploaded on Size
pims-0.2.tar.gz (md5) Source 2014-07-09 5MB
  • Downloads (All Versions):
  • 68 downloads in the last day
  • 798 downloads in the last week
  • 1720 downloads in the last month