Image 2 ANSI - 实现在ANSI终端中显示图像和摄像机视频
Image 2 ANSI - 实现在ANSI终端中显示图像和摄像机视频
Python 图片处理
共139Star
详细介绍
Image 2 ANSI
Converts an image to a representation in ANSI
Installation
pip install img_term
Usage
usage: img_term [-h] [-img IMG] [-width WIDTH] [-cam CAM] [-col {4,8,24}]
Display image to terminal
optional arguments:
-h, --help show this help message and exit
-img IMG Image file to display
-width WIDTH Character width of output
-cam CAM Show camera, this is the default
-col {4,8,24} Colour scheme to use
Display an image in terminal
img_term -img dog.jpg
Render your video capture device to terminal:
img_term
Select a colour palette:
./img_term.py -img lena.jpg -col 24
Example
Go from this:
To this:
Or this
To this:
Or even render a video:
./img_term.py -col 24 -vid unrealset.mkv -width 78
https://gfycat.com/IdolizedSomeGemsbuck
Or simply stream your USB camera to terminal!:
-
741 Star
-
493 Star
-
0 Star
-
310 Star
-
20 Star
-
155 Star
-
180 Star
-
0 Star