To convert any image or text into braille art
Project description
imagetobrailleart
A python library to convert image into braille art.
Convert any image into braille. I have used openCV, PIL and braillegraph by Chris bouchard but i have slightly upgraded his library.
Installation
This package is hosted on PyPI, so installation should be as simple as
% pip install imagetobrailleart
Note that this package requires at least Python 3.3, so if your default Python installation is still Python 2, make sure you use pip3.
openCV is necessary for this library. If it is not installed then please install it.
%pip install opencv-python
I am using 4.5.3.56 version.
Pillow is also necessary for this library. If it is not installed then please install it.
%pip install pillow
I am using 8.3.1 version.
Again, use python3 if necessary.
Usage
Import imagetobrailleart to start using it.
imagetobraille("location_of_image", size = 100, inverse = 'n')
100 is the minimum we recommend and to inverse the image use 'y' and if you don't want ot inverse it then use 'n' or left it blank. Example to print face of a girl:
>>> import imagetobrailleart as itb
>>> a = itb.imagetobraille("C:\\Users\\yash\\Desktop\\face2.jpg")
>>> print(a)
License
MIT
Free Code, Hell Yeah!
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
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 imagetobrailleart-0.0.5.4.tar.gz.
File metadata
- Download URL: imagetobrailleart-0.0.5.4.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69ec463d224d102f80cb10aa0786031e65b2aa2fdd42065a643d71214b72ad80
|
|
| MD5 |
4f33e527c6408edc9474c5ae264a6398
|
|
| BLAKE2b-256 |
27f6d73316b5252225caca299c2396aeca3fa1822fdd93c53d61f27e70bd3631
|
File details
Details for the file imagetobrailleart-0.0.5.4-py3-none-any.whl.
File metadata
- Download URL: imagetobrailleart-0.0.5.4-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a47f7e07c19d9b0e18d9e692679daa51e8564f08b25dc94fcce9e5ab6c271afb
|
|
| MD5 |
e61874ebce16982b0d5ebb25f769cb9b
|
|
| BLAKE2b-256 |
e039098fa9bb007e1e29473e809cc4ff569fa7159f450576a1534a1281a8f347
|