Writing GUI Applications with Python

Image Processing in Python

Copyright 2010 by Stephen Vermeulen
Last updated: 2010 Jun 16
Indexing Text in Python

100 106 98 apr changes collection commercial convert cross described dev documentation embedded example extension feature head height idea images img implemented later libraries neat nedbatchelder older package photographs point processing processor progress provides read reading record save search seem src table technique title urls users within
While there is no built-in support for image display or processing in Python, there are a number of extension libraries that can be employed to allow this.

  • 2010-Jun-16: Using OpenCV for face detection from Python. You see the snake, the snake sees you, it strikes! [9200]
  • 2009-Nov-27: Face detection using IronPython. [8810]
  • 2009-Jul-13: OpenEXR is a library for reading and writing OpenEXR formatted images, these have floating point pixels for higher dynamic range. Looks like it might only be for Linux/UNIX systems at the moment. [8254]
  • 2009-Jul-08: motmot.wxglvideo is a wx/OpenGL viewer for image sequences. [8247]
  • 2009-May-19: Blurring an image by convolving with a Gaussian function. [7996] [1]
  • 2009-May-01: MagickPy a Python interface to ImageMagick. readmagick uses ImageMagick to read and write images. [4988]
  • 2009-May-01: pymorph (home page here) is an image morphology toolbox with support for various image processing algorithms (including shape detection). [7922]
  • 2008-Jun-25: The Spore Creature Creator program embeds the meta information about the creature (the DNA for it) inside the PNG image of the creature it saves. However this information is no included as a text record within the PNG, rather it appears to be saved (the article takes a look inside the PNG file using PIL) using steganography. Quite a neat idea, except if you modify the image you destroy the DNA embedded within (though that could be viewed as a feature). [6429] [1]
  • 2008-May-27: How to read a continuous stream of PPM frames as output by ffmpeg. [6243] [1]
  • 2008-Apr-01: How to save images as PNG from older versions of PyGame by using PIL. [5368]
  • 2008-Feb-14: PyCV a computer vision package for Python. [5098]
  • 2008-Feb-08: How to use pygame in a headless mode, which you might want to do to use some of its features for something like a web server. [5066] [1]
  • 2008-Feb-05: Phatch is a photo batch processor (home page) with a wxPython frontend, useful for resizing, rotating, applying watermarks... [5051] [1] [2]
  • 2008-Jan-30: How to implement truly transparent text (useful for watermarks) with PIL. [5022]
  • 2008-Jan-18: Content-aware image resizing (using the seam carving technique) implemented in Python using PIL, SciPy and NumPy. This technology will be appearing in a commercial product. [1637]
  • 2007-Oct-05: motmot, is a collection of packages for doing real-time motion image processing in Python. [2598]
  • 2007-Oct-02: How to convert from a PIL Image to wxPython's wx.Image and wx.Bitmap. [2426]
  • 2007-Aug-27: Python and the Image Manipulation Library, a Show Me Do video by Jeff Rush that introduces the PIL (Python Imaging Library). [581]
  • 2007-Aug-23: The Python Imaging Library (PIL), can be downloaded here, the documentation is here, with the work-in-progress version here. An article on using PIL to add watermarks to photographs. And another watermark example. Basic Motion Graphics with Python, is an article on working with video, it makes use of PIL to do a number of interesting image manipulations and for transition effects. The PIL ImageEnhance module contains routines that implement colour, brightness, contrast and sharpness changes according to the technique described in Image Processing By Interpolation and Extrapolation by Paul Haeberli and Douglas Voorhies. [105]
  • 2007-Aug-23: Creating images with Numpy, useful when you need to process images pixel by pixel, this can be acheived in a number of ways using PIL's Image.fromarry() and Image.frombuffer() functions. [109]
  • 2007-Aug-23: Mosaic poster composer [108]
  • 2007-Aug-23: Cornice, a cross platform image viewer written in wxPython and using PIL [107]
  • 2007-Aug-23: PythonMagick is an imaging library based on GraphicsMagick, this provides 16bit colour depth. As of May'06 most of the links to this seem to be broken, need to review later. [106]

              back to vermeulen.ca home