-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
916b1e5
commit e5d46a1
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
https://www.zhihu.com/question/4389622860/answer/35811687913 | ||
|
||
如果这次风波能让一个[三年未更新的项目](https://github.com/vietnh1009/ASCII-generator)重新活跃起来,那对于开源社区也是件好事。 | ||
|
||
赌一次吧。 | ||
|
||
如果有兴趣的话,点个赞。 | ||
|
||
超过 50 个的话,我会把此项目 fork 一份到 gitee,继续对其进行维护。 | ||
|
||
俩赞了,一会看看项目内容和大小,评估一下。 | ||
|
||
一小时就四赞了,还是凌晨,有点意思。把源码下来,用scc看了下代码量: | ||
|
||
``` | ||
Language Files Lines Blanks Comments Code Complexity | ||
─────────────────────────────────────────────────────────────────────────────── | ||
Python 7 552 46 16 490 58 | ||
Plain Text 3 179 18 0 161 0 | ||
License 1 21 4 0 17 0 | ||
Markdown 1 119 23 0 96 0 | ||
─────────────────────────────────────────────────────────────────────────────── | ||
Total 12 871 91 16 764 58 | ||
``` | ||
|
||
应该可以挺快消化。接下来看看它的当前功能和维护情况。 | ||
|
||
---- | ||
|
||
在 pypi 未找到发布版。项目内没找到功能说明文档。看下代码,utils 应该是公用部分,alphabets 是各种语言的文字。其他几个脚本看起来是 图片(image) 和视频(video) 转为 图片或文字,感觉有不少类似内容,重构空间不小。 | ||
|
||
打算尝试最基本的图片转文字功能,用中文文字。 | ||
|
||
几个依赖项: | ||
|
||
- py3.6,机上只有 3.7,先碰一下运气吧。 | ||
- cv2 网上搜了一下才发现是这个:`% pip install opencv-python` | ||
卡在这步下不去:`Building wheel for opencv-python (pyproject.toml) ... |` | ||
|
||
[参考](https://blog.csdn.net/qq_62940532/article/details/130104287) | ||
3:15 开始 | ||
|
||
- PIL: `pip install pillow` 已装 | ||
- numpy已装 |