Skip to main content

A simple tool to display (and read to np.ndarray) images from a url, file, image object, etc.

Project description

What it does:

Reads and displays an image from a url, local filename, PIL image object, numpy.ndimage object, or any object type scipy.misc.imread supports directly. Also contains an simread function that will return the image as a numpy.ndarray.

I’ve had to look up how to display an image in this context or that too many times. This is an attempt to remedy that.

Setup

$ pip install simple-imshow

Usage

>> from simshow import simshow
>> simshow('test-cats.jpg')  # display from local file
>> simshow('http://mathandy.com/escher_sphere.png')  # display from url

Request for Community Support:

I’d love for others to help me make this a more robust, more convenient tool – so, as the FAA likes to say, “If you see something, say something.” Or at least feel free to.

TODO:

  • Add simple tool to take a list of images and display a random sample (or all) as a grid of thumbnails.

  • Add support for plots.

Some thoughts on guidelines for this project:

  • simread should be fast.

  • I’d like to keep required dependencies limited to common ones available through pip (e.g. no requirement for opencv)

  • It’d be nice if simshow could refresh quickly enough support video feeds. In my experience matplotlib figures will not though (I do not know matplotlib well though).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple-imshow-1.0.post1.tar.gz (166.9 kB view hashes)

Uploaded Source

Built Distribution

simple_imshow-1.0.post1-py2.py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page