Skip to main content

braille-art

一个便利的盲文字符画生成工具

安装

请先确保安装好Python环境,本程序在以下环境经过测试:

  • Windows 10, CPython 3.9.7 (amd64)

  • macOS 11.6, CPython 3.9.7 (amd64)

  • Ubuntu 20.04 LTS, CPython 3.8.10 (amd64, WSL2)

之后,利用pip进行安装:

pip3 install braille-art

用法

brailleart <你的图片路径>

另外,提供了以下可选开关:

  • -w/--width, -h/--height: 控制图片的长/宽,如果只给其中一个值,则等比例缩放

  • -o/--output: 输出盲文字符画到指定文件

  • -s/--threshold: 可以指定进行二值化时使用的阈值

当然也可以在python中引用:

import brailleart as ba

ba.convert(your_path, optional_width, optional_height, optional_threshold)

感谢

感谢这篇文章给出的盲文字符表和权值表。

Metadata

Release files for braille-art 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for braille-art 0.0.3
File Size Uploaded Provenance Actions
braille-art-0.0.3.tar.gz 5.0 kB Without provenance Details for braille-art-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for braille-art 0.0.3
File Interpreter ABI Platform Actions
braille_art-0.0.3-py3.9.egg Legacy Egg format - - Details for braille_art-0.0.3-py3.9.egg

Total release size: 12.9 kB

Release files / braille-art-0.0.3.tar.gz

Download URL braille-art-0.0.3.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37e717209aeae342bf605f01373c79dd23523c22364434bb2be249c5b7a6dad7
BLAKE2b-256 checksum
How to use checksums
e36fcc8a062596e72373897da065f02fb468ac70d5dec026a42370f8204cc333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / braille_art-0.0.3-py3.9.egg

Download URL braille_art-0.0.3-py3.9.egg
Size 7.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
53b43dba03ae917ef97696415dbd9e3a74f7a535e0cac705a9cf2bb60231dde0
BLAKE2b-256 checksum
How to use checksums
874ea34d7a4cd0127888b6f5a186a45d28488283baaa42e4ae355e98dc1f90a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for braille-art 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page