Skip to main content

动态字体映射工具

Project description

FontMapster 项目说明

简介

codecov

fontmapster 是一个获取动态字体映射的工具,包含通过非 ocrocr 通用的方式来获取动态字体加密的真实映射功能。

安装

简洁安装,不使用 ocr 的方法时推荐安装此便携版:

pip install fontmapster

单使用 rapidocr ocr 的方式时:

pip install fontmapster[rapidocr]

单使用 cnocr ocr 的方式时:

pip install fontmapster[cnocr]

安装所有依赖的方式:

pip install fontmapster[all]

简单示例

具体示例请在 tests 的测试文件中查看。

  1. 普通场景:

    一般是比较标准的字体文件,可以通过通用的方法高效地得到映射。

  2. ocr 场景:

    在非标准字体文件,或者在一些字体不常变动的站点想快速得到结果时使用。

补充说明:

ocr 场景中可以很方便地调整字体大小,行间距,列间距等参数来提高 ocr 工具识别准确率。

比如以下由两个不同设置得到的图示(可以通过 show 参数在调试时使用)。

Project details


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 hashes)

Uploaded Source

Built Distribution

fontmapster-0.1.0-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page