【文件属性】:
文件名称:img_to_txt:图片到txt,视频到txt
文件大小:67KB
文件格式:ZIP
更新时间:2021-05-03 11:48:29
Python
图片传输到txt
用法
安装依赖:
$ pip3 install -r requirements.txt
命令:
$ python3 img_to_txt.py [file/url] [size]
args:
[file/url]: The local file path, or online pic URL.
[size]: Width of output txt, The larger the size, the clearer the picture .
例子
$ python3 img_to_txt.py https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
执行此命令后,您将在当前文件夹中获得一个名为out.txt文件,并且您将在控制台中观看字符串输出:
留
【文件预览】:
img_to_txt-master
----google.png(13KB)
----video_to_txt.py(2KB)
----requirements.txt(105B)
----LICENSE(1KB)
----README.md(787B)
----google-txt.png(52KB)
----img_to_txt.py(3KB)
----.gitignore(3KB)