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
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 imshowtools-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0e64a3727207e5b0033debe2aef27fe2fcb9193b2a087efa99e7319d3371610 |
|
MD5 | 93a0f9407620e630a955aa5054113451 |
|
BLAKE2b-256 | 8640c7d9e1ac7f3238215ed0e7ba727b9587bd9b3dcc06af607800f07a2ca62a |