Skip to main content

imshowtools contains simplified imshow functions to show multiple images and with other options

Project description

imshowtools

This library that allows you to view images in Jupyter notebooks in a much simpler way.

Installation

To install imshowtools,

pip install imshowtools

Usage

Open a jupyter notebook and use imshowtools as shown below:

Show a Single Image

from imshowtools import *
imshow(your_image)

Show Multiple Images

from imshowtools import *
imshow(image_1, image_2, image_3)

Show Multiple Images from Array

from imshowtools import *
imshow(*my_image_array)

Smart Wrapping

We choose the right layout for you:

  • Have 6 images? You get 2x3
  • Have 12 images? You get 3x4

Custom Rows and Columns

You can also choose to manually control how many rows and columns you

from imshowtools import *
imshow(*my_image_array, rows=3, columns=4)

BGR Colorspace

OpenCV lover? imshowtools can also handle cv2's BGR images

from imshowtools import *
import cv2

cv2image = cv2.imread('my_image.png')
imshow(cv2image, mode='BGR')

Namespaces

If you do not want to use imshow directly in your app (maybe you have another function named imshow), you shall use it like

import imshowtools
imshowtools.imshow(your_image)

or if you like to use a custom namespace

import imshowtools as my_namespace
my_namespace.imshow(your_image)

Uninstall

To uninstall imshowtools,

pip uninstall imshowtools

Licence

MIT License

Copyright (c) 2019 Saravanabalagi Ramachandran

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

imshowtools-0.2.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

imshowtools-0.2.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded 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