Image thumnail print on terminal using text
Project description
imgdot
We generate image to text on terminal
It is made for linux server to show image.
When we want to see image on python linux server,
we have to save image or use jupyter notebook.
To see thumnail of the image, we can use cv2.imshow in local environment.
However, it is impossible for server ssh terminal.
It is simple thumnail printer using python.
How to use
Git cloning on your repository
git clone https://github.com/KorKite/imgdot
import package on python
cv2 version
import cv2
from imgdot import thumshow
img = cv2.imread(<img-path>)
thumshow(img) # run the code
PIL Image version
import numpy as np
from PIL import Image
from imgdot import thumshow
img = np.array(Image.open(<img-path>))
thumshow(img) # run the code
Example
We can print images like down below.
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
dotshow-0.0.1.tar.gz
(3.6 kB
view hashes)