Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonnoftw/img_term
Display image, video or USB camera in your ANSI terminal!
https://github.com/jonnoftw/img_term
opencv python3 terminal terminal-graphics
Last synced: about 11 hours ago
JSON representation
Display image, video or USB camera in your ANSI terminal!
- Host: GitHub
- URL: https://github.com/jonnoftw/img_term
- Owner: JonnoFTW
- License: mit
- Created: 2018-08-10T07:17:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-13T03:14:18.000Z (about 3 years ago)
- Last Synced: 2024-09-07T02:30:54.061Z (27 days ago)
- Topics: opencv, python3, terminal, terminal-graphics
- Language: Python
- Homepage:
- Size: 781 KB
- Stars: 163
- Watchers: 10
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Image 2 ANSI
=
Converts an image to a representation in ANSIInstallation
-
1.
```bash
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
```bash
img_term -img dog.jpg
```Render your video capture device to terminal:
```bash
img_term
```Select a colour palette:
```bash
./img_term.py -img lena.jpg -col 24
```Example
-
Go from this:![Dog](/dog.jpg)
To this:
![Screenshot](/screenshot.png)
Or this
![Lenna](/lena.jpg)
To this:
![LenaPixel](/screenshot2.png)
Or even render a video:
```bash
./img_term.py -col 24 -vid unrealset.mkv -width 78
```https://gfycat.com/IdolizedSomeGemsbuck
Or simply stream your USB camera to terminal!:
https://gfycat.com/RemarkablePalatableKob