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
>> imshow('test-cats.jpg') # display from local file
>> imshow('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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for simple_imshow-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a9806d5f156ce783459eaaa08d6e9096b37a628e66479df6257a3c1d2f97b30 |
|
MD5 | 7782f05ab787595e29f214ec05c67c6a |
|
BLAKE2b-256 | afe6aec89784d71e3fbcd901e055e546e4b78f6bf101cadd7b5a1f45b71890ee |