FontMapster 项目说明
简介
fontmapster 是一个获取动态字体映射的工具,包含通过非 ocr 及 ocr 通用的方式来获取动态字体加密的真实映射功能。
安装
简洁安装,不使用 ocr 的方法时推荐安装此便携版:
pip install fontmapster
单使用 rapidocr ocr 的方式时:
pip install fontmapster[rapidocr]
单使用 cnocr ocr 的方式时:
pip install fontmapster[cnocr]
安装所有依赖的方式:
pip install fontmapster[all]
简单示例
具体示例请在 tests 的测试文件中查看。
-
普通场景:
一般是比较标准的字体文件,可以通过通用的方法高效地得到映射。
-
ocr场景:在非标准字体文件,或者在一些字体不常变动的站点想快速得到结果时使用。
补充说明:
在 ocr 场景中可以很方便地调整字体大小,行间距,列间距等参数来提高 ocr 工具识别准确率。
比如以下由两个不同设置得到的图示(可以通过 show 参数在调试时使用)。
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fontmapster-0.1.0.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fontmapster-0.1.0.tar.gz.
File metadata
- Download URL: fontmapster-0.1.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.2 CPython/3.8.5 Linux/3.10.0-1160.102.1.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a8bc063f9c51c51a154c5c30708dad598c0cabf4488cb6a8cb5b2a13f3c4ada
|
|
| MD5 |
72b73ac1db3b7429c986d354e2312ced
|
|
| BLAKE2b-256 |
1b0bd9201730ce55a34750ca21f990ec26884f2776ac247d44895c9187014354
|
File details
Details for the file fontmapster-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fontmapster-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.8.2 CPython/3.8.5 Linux/3.10.0-1160.102.1.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
923b047ecbf2265bed20b875db143ee41d80af8c47cf319865b925238d6664a1
|
|
| MD5 |
22d051229128cb448bfa3231db2fd711
|
|
| BLAKE2b-256 |
d9778f22494bbfbb4869ac0ba658f75b6917e6c50ef6c3990cea909cb0185beb
|