Skip to content
المشاريع

حول

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.

أدوات التطوير

كيف تُقاس هذه الأرقام

221 نجمة17 التفرعات +1 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
+٦
خلال 15 يومًا
+١١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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 logoBot 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 logoBot logo

License

MIT licence

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…