Skip to main content

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)

GIRL braille art

License

MIT

Free Code, Hell Yeah!

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

imagetobrailleart-0.0.5.5.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imagetobrailleart-0.0.5.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file imagetobrailleart-0.0.5.5.tar.gz.

File metadata

  • Download URL: imagetobrailleart-0.0.5.5.tar.gz
  • Upload date:
  • Size: 7.7 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

Hashes for imagetobrailleart-0.0.5.5.tar.gz
Algorithm Hash digest
SHA256 33fdc5cd3cce42b207cfce95ec11f8607af756a92e76152d95da5651a10098c8
MD5 bed0b317a601bb2fcef5ee5705023b8b
BLAKE2b-256 bf3a98d8e8eb9e4df902d59083670866e17c2d8db8412b8e6f5f55d286a28dbb

See more details on using hashes here.

File details

Details for the file imagetobrailleart-0.0.5.5-py3-none-any.whl.

File metadata

  • Download URL: imagetobrailleart-0.0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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

Hashes for imagetobrailleart-0.0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1d568fec78d4d20d1b561bb7010cdad05989b1742d78a2d237756faf75e6dd2a
MD5 abf526cebd19ab54e57bf605f7441823
BLAKE2b-256 621253846abe82282565ea95dc7f5f622fb4ea6cf5e6d7d0a898e812a3d2003e

See more details on using hashes here.

Supported by

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