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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file simple-imshow-1.0.post1.tar.gz.

File metadata

File hashes

Hashes for simple-imshow-1.0.post1.tar.gz
Algorithm Hash digest
SHA256 8d51e323ffee432d91f64033ff7bd797f0520bb4799800bbd022d4923e37bfdd
MD5 550b2a65e1680f4de0aa0c89f7ae6f75
BLAKE2b-256 6296019552f62ed0367823638ff4a3c9c8ff70d0ad98a576d6b78ca46c5871c1

See more details on using hashes here.

File details

Details for the file simple_imshow-1.0.post1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for simple_imshow-1.0.post1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4f7f9b340a94dc4fa8b9ba795b773e30cff9f4f5480ba71449a1e8002f238674
MD5 1a67afbed9184740183fd61a157f45c4
BLAKE2b-256 b3edbae62e18b5a22e084a9045013370d41867e783228a554556d169ec31e870

See more details on using hashes here.

Supported by

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