Braille art generator
Project description
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)
感谢
感谢这篇文章给出的盲文字符表和权值表。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
braille-art-0.0.3.tar.gz
(5.0 kB
view details)
Built Distribution
braille_art-0.0.3-py3.9.egg
(7.9 kB
view details)
File details
Details for the file braille-art-0.0.3.tar.gz
.
File metadata
- Download URL: braille-art-0.0.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e717209aeae342bf605f01373c79dd23523c22364434bb2be249c5b7a6dad7 |
|
MD5 | 9c9a969bd62ae0a3bd71f35dff1f6dfd |
|
BLAKE2b-256 | e36fcc8a062596e72373897da065f02fb468ac70d5dec026a42370f8204cc333 |
File details
Details for the file braille_art-0.0.3-py3.9.egg
.
File metadata
- Download URL: braille_art-0.0.3-py3.9.egg
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53b43dba03ae917ef97696415dbd9e3a74f7a535e0cac705a9cf2bb60231dde0 |
|
MD5 | a357ab5714103ffce9f295a5890b0237 |
|
BLAKE2b-256 | 874ea34d7a4cd0127888b6f5a186a45d28488283baaa42e4ae355e98dc1f90a2 |