RepositoryPython
BEPb

BEPb/image_to_ascii

Everything is very simple: you either download a picture file or specify its link when running a python script, and output you get a text file, and you can immediately view on the command line how it will look the result of your conversion.

215stars
17forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: cmd

#1 Repository of the week

1
TINIX TRENDING·Topic: gif-to-ascii

#1 Repository of the week

1
TINIX TRENDING·Topic: video-to-text

#1 Repository of the week

Converting an image to a .txt file

Read in other languages: Русский, हिन्दी, 中國人, Português

How it works?

Everything is very simple: you either download a picture file or specify its link when running a python script, and output you get a text file, and you can immediately view on the command line how it will look the result of your conversion.

Procedure for preparing and working with the bot

  • Clone the repository or download the archive from github or using the following commands on the command line

    $ cmd
    $ git clone https://github.com/BEPb/image_to_ascii
    $ cd image_to_ascii
    

Applying the repository

  • Install dependencies from a file, for this, enter the following code in the command line:
$ pip3 install -r requirements.txt
  • general form of program launch:
$ python3 img_to_txt_rus.py [file/url] [size]
  • arguments:
[file/url]: Local file path or online image URL.
[size]: The width of the output txt image in characters - an integer, The larger the size, the clearer the picture.

Example

$ python3 img_to_txt.py https://i.postimg.cc/t4Cmn7wC/py.png

By executing this command, you will get a file in the current 'texts' folder named out.txt and you will see the output of the line in the console:

Bot logo Bot logo

Video to Text Converter

The principle is similar, except that the resulting text file does not exist.

cd C:\Users\root\PycharmProjects\image_to_ascii 
python video_to_txt.py animations\filin.gif 150
Bot logo Bot logo

License

MIT licence

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
BEPb/image_to_ascii

Everything is very simple: you either download a picture file or specify its link when running a python script, and output you get a text file, and you can immediately view on the command line how it will look the result of your conversion.

215
Apr 13, 2023
RepositoryPython
zero5122/offline-file-converter-windows

Free offline file converter for Windows – convert PDF, documents, images, audio and video privately.

1.1k
Nov 23, 2026
RepositoryTypeScript
C4illin/ConvertX

💾 Self-hosted online file converter. Supports 1000+ formats ⚙️

19.8k
Nov 30, 2026
RepositoryPython
RVC-Project/Retrieval-based-Voice-Conversion-WebUI

Easily train a good VC model with voice data <= 10 mins!

39.4k
Aug 4, 2026
RepositoryPython
Hyacinthe-primus/File-Converter-Pro

Free offline all-in-one file converter for Windows. Converts documents, images, audio and video locally. No uploads, no internet, no dependencies. Built with Python & PySide6. Features dark/light theme, stats dashboard, achievements, and multi-engine fallback.

609
Nov 27, 2026
Modelimage-to-text
zai-org/GLM-OCR

GLM-OCR 👋 Join our WeChat and Discord community 📍 Use GLM-OCR's API 👉 GLM-OCR SDK Recommended 📖 Technical Report Introduction GLM-OCR is a multimodal OCR model for complex document understanding, built on the GLM-V encoder–decoder architecture....

♥0
2.5M
Sep 11, 2026
Modelimage-to-text
Salesforce/blip-image-captioning-large

BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation Model card for image captioning pretrained on COCO dataset - base architecture (with ViT large backbone). | !BLIP.gif(https://cdn-uploads.huggin...

♥0
384.5k
Feb 3, 2025
Modelimage-to-text
Salesforce/blip-image-captioning-base

BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation Model card for image captioning pretrained on COCO dataset - base architecture (with ViT base backbone). | !BLIP.gif(https://cdn-uploads.hugging...

♥0
1.0M
Feb 3, 2025
Modelimage-to-text
nlpconnect/vit-gpt2-image-captioning

nlpconnect/vit-gpt2-image-captioning This is an image captioning model trained by @ydshieh in flax (https://github.com/huggingface/transformers/tree/main/examples/flax/image-captioning) this is pytorch version of this(https://huggingface.co/ydshieh/...

♥0
95.3k
Feb 27, 2023