{"id":15009738,"url":"https://github.com/bepb/image_to_ascii","last_synced_at":"2025-04-09T17:51:41.360Z","repository":{"id":65878239,"uuid":"600522835","full_name":"BEPb/image_to_ascii","owner":"BEPb","description":"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.","archived":false,"fork":false,"pushed_at":"2023-04-13T18:09:23.000Z","size":1759,"stargazers_count":86,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T19:51:30.282Z","etag":null,"topics":["cmd","cmdline","conversion","convert","converter","gif-to-ascii","image-to","image-to-text","py","python","python3","script","video-to-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BEPb.png","metadata":{"files":{"readme":"README.chinese.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-11T18:51:54.000Z","updated_at":"2025-03-22T13:07:12.000Z","dependencies_parsed_at":"2024-09-28T17:01:33.932Z","dependency_job_id":"2aeb105e-bfd7-4593-aafc-96cef0bcc1e5","html_url":"https://github.com/BEPb/image_to_ascii","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BEPb%2Fimage_to_ascii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BEPb%2Fimage_to_ascii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BEPb%2Fimage_to_ascii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BEPb%2Fimage_to_ascii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BEPb","download_url":"https://codeload.github.com/BEPb/image_to_ascii/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083146,"owners_count":21045050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmd","cmdline","conversion","convert","converter","gif-to-ascii","image-to","image-to-text","py","python","python3","script","video-to-text"],"created_at":"2024-09-24T19:28:08.285Z","updated_at":"2025-04-09T17:51:41.319Z","avatar_url":"https://github.com/BEPb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n  \u003cimg  src=\"https://img.shields.io/github/stars/BEPb/image_to_ascii\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/contributors/BEPb/image_to_ascii\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/last-commit/BEPb/image_to_ascii\" /\u003e\n  \u003cimg src=\"https://visitor-badge.laobi.icu/badge?page_id=BEPb.image_to_ascii\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/count/BEPb/image_to_ascii\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/BEPb/image_to_ascii\" /\u003e\n\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg?color=f64152\" /\u003e\n  \u003cimg  src=\"https://img.shields.io/github/issues/BEPb/image_to_ascii\" /\u003e\n  \u003cimg  src=\"https://img.shields.io/github/issues-pr/BEPb/image_to_ascii\" /\u003e\n\u003c/p\u003e\n\n\n# 将图像转换为 .txt 文件\nRead in other languages: [English](README.md), [हिन्दी](README.hindi.md), [Português](README.portuguese.md), [Русский](README.ru.md)\n\n## 怎么运行的？\n\n一切都很简单：你要么下载一个图片文件，要么在运行 python 脚本时指定它的链接，然后\n输出你得到一个文本文件，你可以立即在命令行上查看它的外观\n你转换的结果。\n\n## 准备和使用机器人的程序\n\n* 克隆存储库或从 github 下载存档或在命令行上使用以下命令\n\n   ```commandline\n   $ cmd\n   $ git clone https://github.com/BEPb/image_to_ascii\n   $ cd image_to_ascii\n   ```\n\n### 应用存储库\n* 从文件安装依赖项，为此，在命令行中输入以下代码：\n\n```shell\n$ pip3 install -r requirements.txt\n````\n\n* 程序启动的一般形式：\n\n```shell\n$ python3 img_to_txt_rus.py [file/url] [size]\n```\n\n*参数：\n\n```shell\n[file/url]：本地文件路径或在线图片URL。\n[size]：输出txt图片的字符宽度——整数，size越大图片越清晰。\n```\n\n### 例子\n```shell\n$ python3 img_to_txt.py https://i.postimg.cc/t4Cmn7wC/py.png\n```\n通过执行此命令，您将在当前“文本”文件夹中获得一个名为“out.txt”的文件，您将在控制台中看到该行的输出：\n\n\u003cimg src=\"./pictures/py.png\" alt=\"Bot logo\" width=\"300\" height=\"356.5\"\u003e\n\n\u003cimg src=\"./pictures/png.png\" alt=\"Bot logo\" width=\"600\" height=\"600\"\u003e\n\n\n## 视频到文本转换器\n原理类似，只是生成的文本文件不存在。\n\n```commandline\ncd C:\\Users\\root\\PycharmProjects\\image_to_ascii \npython video_to_txt.py animations\\filin.gif 150\n```\n\n\u003cimg src=\"./animations/filin.gif\" alt=\"Bot logo\" width=\"800\" height=\"600\"\u003e\n\n\u003cimg src=\"./animations/gif.gif\" alt=\"Bot logo\" width=\"800\" height=\"600\"\u003e\n\n\n\n### License\n[MIT licence](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbepb%2Fimage_to_ascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbepb%2Fimage_to_ascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbepb%2Fimage_to_ascii/lists"}